From: Wolfgang Bumiller Date: Mon, 7 Apr 2014 12:28:11 +0000 (+0200) Subject: fix a silly macro issue X-Git-Tag: xonotic-v0.8.0~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2b7b2ea45594f40012bb92958efb9e7aed527534;p=xonotic%2Fgmqcc.git fix a silly macro issue --- diff --git a/gmqcc.h b/gmqcc.h index 34c0ed8..448c0c3 100644 --- a/gmqcc.h +++ b/gmqcc.h @@ -265,7 +265,7 @@ void _util_vec_grow(void **a, size_t i, size_t s); ) /* exposed interface */ -#define vec_meta(A) (((vector_t*)((void*)A)) - 1) +#define vec_meta(A) (((vector_t*)((void*)(A))) - 1) #define vec_free(A) ((void)((A) ? (mem_d((void*)vec_meta(A)), (A) = NULL) : 0)) #define vec_push(A,V) (GMQCC_VEC_WILLGROW((A),1), (A)[vec_meta(A)->used++] = (V)) #define vec_size(A) ((A) ? vec_meta(A)->used : 0)