diff options
author | Paul Gilbert | 2019-06-25 22:37:19 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-07-06 15:27:07 -0700 |
commit | 822cd6f16564a4fbb3436600894c144bf9e160d6 (patch) | |
tree | 876058f5583b98c9458c79b866b0b61746c5c380 /engines/glk/alan3/location.cpp | |
parent | cd7cf4141425e3e77b164d2dbcbae8de1eacb035 (diff) | |
download | scummvm-rg350-822cd6f16564a4fbb3436600894c144bf9e160d6.tar.gz scummvm-rg350-822cd6f16564a4fbb3436600894c144bf9e160d6.tar.bz2 scummvm-rg350-822cd6f16564a4fbb3436600894c144bf9e160d6.zip |
GLK: ALAN3: Further warning fixes
Diffstat (limited to 'engines/glk/alan3/location.cpp')
-rw-r--r-- | engines/glk/alan3/location.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/glk/alan3/location.cpp b/engines/glk/alan3/location.cpp index 59dccd9a07..eca958052d 100644 --- a/engines/glk/alan3/location.cpp +++ b/engines/glk/alan3/location.cpp @@ -58,7 +58,7 @@ void go(int location, int dir) theExit = (ExitEntry *) pointerTo(instances[location].exits); if (instances[location].exits != 0) while (!isEndOfArray(theExit)) { - if (theExit->code == dir) { + if (theExit->code == (uint)dir) { ok = TRUE; if (theExit->checks != 0) { if (traceSectionOption) @@ -73,7 +73,7 @@ void go(int location, int dir) interpret(theExit->action); } /* Still at the same place? */ - if (where(HERO, TRANSITIVE) == oldloc) { + if (where(HERO, TRANSITIVE) == (int)oldloc) { if (traceSectionOption) traceExit(location, dir, "Moving"); locate(HERO, theExit->target); @@ -97,7 +97,7 @@ bool exitto(int to, int from) return FALSE; /* No exits */ for (theExit = (ExitEntry *) pointerTo(instances[from].exits); !isEndOfArray(theExit); theExit++) - if (theExit->target == to) + if (theExit->target == (uint)to) return TRUE; return FALSE; @@ -107,7 +107,7 @@ bool exitto(int to, int from) /*======================================================================*/ void look(void) { - int i; + uint i; /* Set describe flag for all objects and actors */ for (i = 1; i <= header->instanceMax; i++) |