From 8b1b52a687f87e1507dc612d7e9ae899ea69a0c2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 1 Jul 2014 22:27:53 -0700 Subject: Remove an unnecessary cast --- Alc/vector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/vector.h b/Alc/vector.h index 5c094bee..5e169f24 100644 --- a/Alc/vector.h +++ b/Alc/vector.h @@ -29,8 +29,8 @@ ALboolean vector_reserve(void *ptr, size_t base_size, size_t obj_count, size_t o ALboolean vector_resize(void *ptr, size_t base_size, size_t obj_count, size_t obj_size); #define VECTOR_RESIZE(_x, _c) (vector_resize(&(_x), sizeof(*(_x)), (_c), sizeof((_x)->Data[0]))) -#define VECTOR_CAPACITY(_x) ((const ALsizei)((_x) ? (_x)->Capacity : 0)) -#define VECTOR_SIZE(_x) ((const ALsizei)((_x) ? (_x)->Size : 0)) +#define VECTOR_CAPACITY(_x) ((_x) ? (_x)->Capacity : 0) +#define VECTOR_SIZE(_x) ((_x) ? (_x)->Size : 0) #define VECTOR_ITER_BEGIN(_x) ((_x)->Data + 0) #define VECTOR_ITER_END(_x) ((_x)->Data + VECTOR_SIZE(_x)) -- cgit v1.2.3