Index: /Daodan/src/Daodan_Patch.c
===================================================================
--- /Daodan/src/Daodan_Patch.c	(revision 1044)
+++ /Daodan/src/Daodan_Patch.c	(revision 1045)
@@ -66,5 +66,5 @@
 				branches++;
 				int target = disasm.Instruction.AddrValue;
-				bool targetInTrampoline = ((void*)disasm.Instruction.AddrValue - from) < 5;
+				bool targetInTrampoline = ((void*)((int)disasm.Instruction.AddrValue) - from) < 5;
 				switch (disasm.Instruction.BranchType) {
 					case JmpType:
Index: /Daodan/src/makefile
===================================================================
--- /Daodan/src/makefile	(revision 1044)
+++ /Daodan/src/makefile	(revision 1045)
@@ -6,5 +6,5 @@
 DEF = BEA_ENGINE_STATIC
 INCLUDEPATHS = .
-GCCFLAGS = -std=c99 -O0 -Wall -fomit-frame-pointer -fpack-struct -Wextra -Wno-pragmas -Wno-unused-variable $(addprefix -I,$(INCLUDEPATHS)) -Wno-unused-parameter $(addprefix -D,$(DEF))
+GCCFLAGS = -std=gnu99 -O0 -Wall -fomit-frame-pointer -fpack-struct -Wextra -Wno-pragmas -Wno-unused-variable $(addprefix -I,$(INCLUDEPATHS)) -Wno-unused-parameter $(addprefix -D,$(DEF))
 LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll
 LOCALE = LC_MESSAGES=C
