diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-11-28 20:39:43 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-11-28 20:39:43 +0000 |
| commit | 598dab5bc4fb2836c8f2a6cad757dcb3760a895f (patch) | |
| tree | 957f92585cae2e41bee93ce0b9d493b5178a0f54 /src/array.c | |
| parent | cbb70c78731b9d928508a52180a186b178d30a5e (diff) | |
#rune "" to ''; Remove infix and postfix call notation
Diffstat (limited to 'src/array.c')
| -rw-r--r-- | src/array.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/array.c b/src/array.c index 7e185e872..d169a99ef 100644 --- a/src/array.c +++ b/src/array.c @@ -11,8 +11,8 @@ GB_STATIC_ASSERT(ARRAY_GROW_FORMULA(0) > 0); typedef Array(void) ArrayVoid; #define array_init_reserve(x_, allocator_, init_capacity_) do { \ - GB_ASSERT((x_) != NULL); \ void **e = cast(void **)&((x_)->e); \ + GB_ASSERT((x_) != NULL); \ (x_)->allocator = (allocator_); \ (x_)->count = 0; \ (x_)->capacity = (init_capacity_); \ @@ -20,8 +20,8 @@ typedef Array(void) ArrayVoid; } while (0) #define array_init_count(x_, allocator_, init_count_) do { \ - GB_ASSERT((x_) != NULL); \ void **e = cast(void **)&((x_)->e); \ + GB_ASSERT((x_) != NULL); \ (x_)->allocator = (allocator_); \ (x_)->count = (init_count_); \ (x_)->capacity = (init_count_); \ @@ -67,8 +67,8 @@ typedef Array(void) ArrayVoid; void array__set_capacity(void *ptr, isize capacity, isize element_size) { - GB_ASSERT(ptr != NULL); ArrayVoid *x = cast(ArrayVoid *)ptr; + GB_ASSERT(ptr != NULL); GB_ASSERT(element_size > 0); |