From: Wolfgang (Blub) Bumiller Date: Sun, 25 Nov 2012 13:05:10 +0000 (+0100) Subject: Revert "Fix type punning warnings" X-Git-Tag: 0.1.9~280 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7b56ad94054655019e2734ef4bd14f3ad26a6d8f;p=xonotic%2Fgmqcc.git Revert "Fix type punning warnings" it's a gcc version issue... This reverts commit 3e6d173e31cf351b12262a14c053d82a214c0b36. --- diff --git a/gmqcc.h b/gmqcc.h index b27d4ad..8cf2a83 100644 --- a/gmqcc.h +++ b/gmqcc.h @@ -242,7 +242,7 @@ uint32_t util_crc32(uint32_t crc, const char *data, size_t len); #define INT2FLT(Y) *((float *)&(Y)) /* New flexible vector implementation from Dale */ -#define _vec_raw(A) (*((size_t**)((void*)(&(A))))-2) +#define _vec_raw(A) (((size_t*)(void*)(A)) - 2) #define _vec_beg(A) (_vec_raw(A)[0]) #define _vec_end(A) (_vec_raw(A)[1]) #define _vec_needsgrow(A,N) ((!(A)) || (_vec_end(A) + (N) >= _vec_beg(A)))