Using size_t for lengths (also remove most warnings when compiling for x64)

This commit is contained in:
Ley0k 2017-02-19 21:14:27 +01:00
parent a0f2dccd07
commit 85b7ac3ed5
53 changed files with 814 additions and 514 deletions

View file

@ -1739,7 +1739,7 @@ int yyerror( const char *msg )
return 1;
}
unsigned int ScriptCompiler::Parse( GameScript *gameScript, char *sourceBuffer )
size_t ScriptCompiler::Parse( GameScript *gameScript, char *sourceBuffer )
{
parsedata = yyparsedata();
@ -1786,9 +1786,9 @@ unsigned int ScriptCompiler::Parse( GameScript *gameScript, char *sourceBuffer )
return parsedata.total_length;
}
unsigned int ScriptCompiler::Compile( GameScript *gameScript, unsigned char *progBuffer )
size_t ScriptCompiler::Compile( GameScript *gameScript, unsigned char *progBuffer )
{
int length;
size_t length;
if( progBuffer == NULL )
{