Changeset 1045


Ignore:
Timestamp:
Aug 28, 2016, 6:01:38 PM (8 years ago)
Author:
alloc
Message:

Fixed warning, changed to GNU99 standard

Location:
Daodan/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Daodan_Patch.c

    r1008 r1045  
    6666                                branches++;
    6767                                int target = disasm.Instruction.AddrValue;
    68                                 bool targetInTrampoline = ((void*)disasm.Instruction.AddrValue - from) < 5;
     68                                bool targetInTrampoline = ((void*)((int)disasm.Instruction.AddrValue) - from) < 5;
    6969                                switch (disasm.Instruction.BranchType) {
    7070                                        case JmpType:
  • Daodan/src/makefile

    r994 r1045  
    66DEF = BEA_ENGINE_STATIC
    77INCLUDEPATHS = .
    8 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))
     8GCCFLAGS = -std=gnu99 -O0 -Wall -fomit-frame-pointer -fpack-struct -Wextra -Wno-pragmas -Wno-unused-variable $(addprefix -I,$(INCLUDEPATHS)) -Wno-unused-parameter $(addprefix -D,$(DEF))
    99LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll
    1010LOCALE = LC_MESSAGES=C
Note: See TracChangeset for help on using the changeset viewer.