From 7d4fa437dac1ee1b68313c4fec91dff6c5637477 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 18 Oct 2010 09:59:59 +0200 Subject: [PATCH] Changed: #825 Remove all warning when compiling Ryzom --- .../game_share/_backup_service_interface_non_module.cpp | 2 +- .../common/src/game_share/backup_service_interface.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/ryzom/common/src/game_share/_backup_service_interface_non_module.cpp b/code/ryzom/common/src/game_share/_backup_service_interface_non_module.cpp index 0fc3df40f..8176793bd 100644 --- a/code/ryzom/common/src/game_share/_backup_service_interface_non_module.cpp +++ b/code/ryzom/common/src/game_share/_backup_service_interface_non_module.cpp @@ -85,7 +85,7 @@ private: void CGenericRequestIdRegister::pushRequestId(uint32 requestId,const std::string& fileName) { // check for out of order entries in the request list - BOMB_IF(!_RequestIds.empty() && ((sint32)requestId-(sint32)_RequestIds.back().RequestId)<0,"Ignoring out of order request id in generic callback registration for file "+CSString(fileName).quote(),return); + BOMB_IF(!_RequestIds.empty() && (requestId<_RequestIds.back().RequestId),"Ignoring out of order request id in generic callback registration for file "+CSString(fileName).quote(),return); // setup a new record for this request id / file name pair SRequestId theNewRequestId; diff --git a/code/ryzom/common/src/game_share/backup_service_interface.cpp b/code/ryzom/common/src/game_share/backup_service_interface.cpp index a31656670..112737b6a 100644 --- a/code/ryzom/common/src/game_share/backup_service_interface.cpp +++ b/code/ryzom/common/src/game_share/backup_service_interface.cpp @@ -47,10 +47,10 @@ public: for (uint32 i='A'; i<='Z';++i) _Data[i]= true; for (uint32 i='a'; i<='z';++i) _Data[i]= true; for (uint32 i='0'; i<='9';++i) _Data[i]= true; - _Data['/']= true; - _Data['.']= true; - _Data['_']= true; - _Data[' ']= true; + _Data[(uint32)'/']= true; + _Data[(uint32)'.']= true; + _Data[(uint32)'_']= true; + _Data[(uint32)' ']= true; } // lookup a character to determine whether it's valid or not