aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-03-27 17:21:23 -0700
committerChris Robinson <[email protected]>2014-03-27 17:21:23 -0700
commitd11d061b2c424f7b6a679a8461c274dbbfb8e077 (patch)
tree43a6a904523cee94a3debfc437215fa1749cc89a
parent4f3e71e5b7ce4768a33c1b3dfa0a3b3df698789b (diff)
Don't have VECTOR_INIT "return" anything
-rw-r--r--Alc/vector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/vector.h b/Alc/vector.h
index de89bbe0..4cb6d2b9 100644
--- a/Alc/vector.h
+++ b/Alc/vector.h
@@ -17,8 +17,8 @@ typedef struct vector__s {
T Data[]; \
} *vector_##T;
-#define VECTOR_INIT(_x) (((_x) = calloc(1, sizeof(*(_x)))) != NULL)
-#define VECTOR_DEINIT(_x) do { free(_x); _x = NULL; } while(0)
+#define VECTOR_INIT(_x) do { (_x) = calloc(1, sizeof(*(_x))); } while(0)
+#define VECTOR_DEINIT(_x) do { free((_x)); (_x) = NULL; } while(0)
/* Helper to increase a vector's reserve. Do not call directly. */
ALboolean vector_reserve(void *ptr, size_t orig_count, size_t base_size, size_t obj_count, size_t obj_size, ALboolean exact);