aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-04-14 00:58:45 -0700
committerChris Robinson <[email protected]>2014-04-14 00:58:45 -0700
commit7bc08bb08cf88cd5d96256461e0c9299a0bf47e8 (patch)
tree08be479ec7b67d1c1ef58dde4b83c51909e0ba84
parente0d24f9da4789bb48ff3920bbd2667d98db9f7c6 (diff)
Ensure VECTOR_ITER_BEGIN gives a pointer-to-type instead of an array-of-type
-rw-r--r--Alc/vector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/vector.h b/Alc/vector.h
index 2d13dd6a..f7db6517 100644
--- a/Alc/vector.h
+++ b/Alc/vector.h
@@ -32,7 +32,7 @@ ALboolean vector_resize(void *ptr, size_t base_size, size_t obj_count, size_t ob
#define VECTOR_CAPACITY(_x) ((const ALsizei)((_x) ? (_x)->Capacity : 0))
#define VECTOR_SIZE(_x) ((const ALsizei)((_x) ? (_x)->Size : 0))
-#define VECTOR_ITER_BEGIN(_x) ((_x)->Data)
+#define VECTOR_ITER_BEGIN(_x) ((_x)->Data + 0)
#define VECTOR_ITER_END(_x) ((_x)->Data + VECTOR_SIZE((_x)))
ALboolean vector_insert(void *ptr, size_t base_size, size_t obj_size, void *ins_pos, const void *datstart, const void *datend);