]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Revert that trans stuff
authorDale Weiler <killfieldengine@gmail.com>
Sun, 14 Apr 2013 01:03:22 +0000 (01:03 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Sun, 14 Apr 2013 01:03:22 +0000 (01:03 +0000)
Makefile
code.c

index b3d1bc31461e2cbe7249a7a3cc01c1f0ecbd2415..c72b237ffa3078951bce17351789c44070048e96 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -160,6 +160,7 @@ SPLINTFLAGS =            \
     -realcompare         \
     -observertrans       \
     -shiftnegative       \
+    -freshtrans          \
     -abstract            \
     -statictrans         \
     -castfcnptr
diff --git a/code.c b/code.c
index 10266935694529310c2cb1777d62412214059d92..5728a8db425f7b724a44717ba8510b400654637e 100644 (file)
--- a/code.c
+++ b/code.c
@@ -36,7 +36,7 @@ uint32_t                code_entfields;
 /* This is outrageous! */
 #define QCINT_ENTRY void*
 #define QCINT_TO_HASH_ENTRY(q) ((void*)(uintptr_t)(q))
-#define HASH_ENTRY_TO_QCINT(h) /*@only@*/ ((qcint) *((uintptr_t*)(&(h))) )
+#define HASH_ENTRY_TO_QCINT(h) ((qcint)(uintptr_t)(h))
 static ht     code_string_cache;
 static qcint  code_string_cached_empty;