mirror of
https://github.com/glest/glest-source.git
synced 2025-08-22 07:52:51 +02:00
- more compiler warning cleanup
This commit is contained in:
@@ -204,7 +204,7 @@ void * LuaArguments::getGenericData(int argumentIndex) const{
|
||||
//}
|
||||
else if(lua_isnumber(luaState, argumentIndex)) {
|
||||
lua_Integer result = luaL_checkinteger(luaState, argumentIndex);
|
||||
printf("\nGENERIC param %d is an int, %d!\n",argumentIndex,result);
|
||||
printf("\nGENERIC param %d is an int, %d!\n",argumentIndex,(int)result);
|
||||
return (void *)result;
|
||||
}
|
||||
else {
|
||||
|
@@ -42,12 +42,12 @@ void FileCRCPreCacheThread::execute() {
|
||||
string techName = techPaths[idx];
|
||||
|
||||
time_t elapsedTime = time(NULL);
|
||||
printf("In [%s::%s Line: %d] caching CRC value for Tech [%s] [%d of %d]\n",__FILE__,__FUNCTION__,__LINE__,techName.c_str(),idx+1,techPaths.size());
|
||||
printf("In [%s::%s Line: %d] caching CRC value for Tech [%s] [%d of %d]\n",__FILE__,__FUNCTION__,__LINE__,techName.c_str(),idx+1,(int)techPaths.size());
|
||||
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d] caching CRC value for Tech [%s] [%d of %d]\n",__FILE__,__FUNCTION__,__LINE__,techName.c_str(),idx+1,techPaths.size());
|
||||
|
||||
int32 techCRC = getFolderTreeContentsCheckSumRecursively(techDataPaths, string("/") + techName + string("/*"), ".xml", NULL);
|
||||
|
||||
printf("In [%s::%s Line: %d] cached CRC value for Tech [%s] is [%d] [%d of %d] took %.3f seconds.\n",__FILE__,__FUNCTION__,__LINE__,techName.c_str(),techCRC,idx+1,techPaths.size(),difftime(time(NULL),elapsedTime));
|
||||
printf("In [%s::%s Line: %d] cached CRC value for Tech [%s] is [%d] [%d of %d] took %.3f seconds.\n",__FILE__,__FUNCTION__,__LINE__,techName.c_str(),techCRC,idx+1,(int)techPaths.size(),difftime(time(NULL),elapsedTime));
|
||||
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d] cached CRC value for Tech [%s] is [%d] [%d of %d] took %.3f seconds.\n",__FILE__,__FUNCTION__,__LINE__,techName.c_str(),techCRC,idx+1,techPaths.size(),difftime(time(NULL),elapsedTime));
|
||||
|
||||
if(getQuitStatus() == true) {
|
||||
|
@@ -104,9 +104,9 @@ string boolToStr(bool b){
|
||||
}
|
||||
}
|
||||
|
||||
string intToStr(int64 i){
|
||||
string intToStr(int64 i) {
|
||||
char str[strSize]="";
|
||||
sprintf(str, "%d", i);
|
||||
sprintf(str, "%lld", i);
|
||||
return str;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user