- fixed warnings in 32 bit linux gcc

This commit is contained in:
Mark Vejvoda 2013-11-17 09:01:32 +00:00
parent d0ac27353a
commit ff9faf7a4a

View File

@ -389,7 +389,7 @@ void FactionThread::execute() {
bool changedActiveCommand = unit->isChangedActiveCommand(); bool changedActiveCommand = unit->isChangedActiveCommand();
char szBuf[8096]=""; char szBuf[8096]="";
snprintf(szBuf,8096,"unit->needToUpdate() returned: %d updateProgressValue: " MG_I64_SPECIFIER " speed: " MG_I64_SPECIFIER " changedActiveCommand: %d df: " MG_I64_SPECIFIER " hf: " MG_I64_SPECIFIER,update,updateProgressValue,speed,changedActiveCommand,df,hf); snprintf(szBuf,8096,"unit->needToUpdate() returned: %d updateProgressValue: %lld speed: %lld changedActiveCommand: %d df: %lld hf: %lld",update,updateProgressValue,speed,changedActiveCommand,df,hf);
unit->logSynchDataThreaded(__FILE__,__LINE__,szBuf); unit->logSynchDataThreaded(__FILE__,__LINE__,szBuf);
} }
@ -415,7 +415,7 @@ void FactionThread::execute() {
bool changedActiveCommand = unit->isChangedActiveCommand(); bool changedActiveCommand = unit->isChangedActiveCommand();
char szBuf[8096]=""; char szBuf[8096]="";
snprintf(szBuf,8096,"unit->needToUpdate() returned: %d updateProgressValue: " MG_I64_SPECIFIER " speed: " MG_I64_SPECIFIER " changedActiveCommand: %d df: " MG_I64_SPECIFIER " hf: " MG_I64_SPECIFIER,update,updateProgressValue,speed,changedActiveCommand,df,hf); snprintf(szBuf,8096,"unit->needToUpdate() returned: %d updateProgressValue: %lld speed: %lld changedActiveCommand: %d df: %lld hf: %lld",update,updateProgressValue,speed,changedActiveCommand,df,hf);
unit->logSynchDataThreaded(__FILE__,__LINE__,szBuf); unit->logSynchDataThreaded(__FILE__,__LINE__,szBuf);
} }
} }