--- Daodan/src/Daodan_Patch.c 2014/08/25 23:21:09 1008 +++ Daodan/src/Daodan_Patch.c 2016/08/28 16:01:38 1045 @@ -65,7 +65,7 @@ void* DDrPatch_MakeDetour(void* from, vo } 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: case CallType: