From 3b39c7d5b23f3c411e660e0c56254a5b51aabf16 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Sat, 17 Jul 2010 06:59:18 +0000 Subject: [PATCH] - cleanup of some compiler warnings --- source/glest_game/types/unit_type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/types/unit_type.cpp b/source/glest_game/types/unit_type.cpp index 80b0767f7..ea5d61ee7 100644 --- a/source/glest_game/types/unit_type.cpp +++ b/source/glest_game/types/unit_type.cpp @@ -613,7 +613,7 @@ const CommandType* UnitType::findCommandTypeById(int id) const{ const CommandType *UnitType::getCommandType(int i) const { if(i >= commandTypes.size()) { char szBuf[1024]=""; - sprintf(szBuf,"In [%s::%s Line: %d] i >= commandTypes.size(), i = %d, commandTypes.size() = %ul",__FILE__,__FUNCTION__,__LINE__,i,(unsigned long)commandTypes.size()); + sprintf(szBuf,"In [%s::%s Line: %d] i >= commandTypes.size(), i = %d, commandTypes.size() = %lu",__FILE__,__FUNCTION__,__LINE__,i,(unsigned long)commandTypes.size()); throw runtime_error(szBuf); } return commandTypes[i];