DIRECTOR: Fix signed/unsigned comparison

This commit is contained in:
Eugene Sandulenko 2020-08-23 01:15:17 +02:00
parent bd8eb63e9a
commit cfa0be7e35
3 changed files with 6 additions and 6 deletions

View File

@ -431,7 +431,7 @@ static const YY_CHAR yy_ec[256] =
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 2, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1
@ -771,7 +771,7 @@ static const char *inputbuffer;
static uint inputlen;
// Push lines in stack
static void pushLine(int num) {
static void pushLine(uint num) {
if (num > inputlen)
return;

View File

@ -46,7 +46,7 @@ static const char *inputbuffer;
static uint inputlen;
// Push lines in stack
static void pushLine(int num) {
static void pushLine(uint num) {
if (num > inputlen)
return;

View File

@ -400,9 +400,9 @@ public:
ScriptData *_currentAssembly;
LexerDefineState _indef;
LexerDefineState _indefStore;
int _linenumber;
int _colnumber;
int _bytenumber;
uint _linenumber;
uint _colnumber;
uint _bytenumber;
const char *_lines[3];
bool _inFactory;
Common::Array<RepeatBlock *> _repeatStack;