Skip to content

Commit

Permalink
Add braces for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
xtreme8000 committed Jan 3, 2023
1 parent 483c2bf commit 64ae0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvxl.c
Expand Up @@ -6,7 +6,7 @@

#include "libvxl.h"

#define LIBVXL_SPAN(base, off) (struct libvxl_span*)((uint8_t*)(base) + (off))
#define LIBVXL_SPAN(base, off) ((struct libvxl_span*)((uint8_t*)(base) + (off)))

static struct libvxl_chunk* chunk_fposition(struct libvxl_map* map, size_t x,
size_t y) {
Expand Down

0 comments on commit 64ae0fc

Please sign in to comment.