projects
/
xonotic
/
gmqcc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e6d173
)
Revert "Fix type punning warnings"
author
Wolfgang (Blub) Bumiller <blub@speed.at>
Sun, 25 Nov 2012 13:05:10 +0000
(14:05 +0100)
committer
Wolfgang (Blub) Bumiller <blub@speed.at>
Sun, 25 Nov 2012 13:05:10 +0000
(14:05 +0100)
it's a gcc version issue...
This reverts commit
3e6d173e31cf351b12262a14c053d82a214c0b36
.
gmqcc.h
patch
|
blob
|
history
diff --git
a/gmqcc.h
b/gmqcc.h
index b27d4adb1acf4f1cef4e26a16c202c0e6604a8c8..8cf2a839bda7c9f353e98683dbb0d93bb2d36d4c 100644
(file)
--- 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)))