mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 06:07:57 +03:00
Using size_t for lengths (also remove most warnings when compiling for x64)
This commit is contained in:
parent
a0f2dccd07
commit
85b7ac3ed5
53 changed files with 814 additions and 514 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue