Ensure VECTOR_ITER_BEGIN gives a pointer-to-type instead of an array-of-type

This commit is contained in:
Chris Robinson 2014-04-14 00:58:45 -07:00
parent e0d24f9da4
commit 7bc08bb08c

View File

@ -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);