Author: mordante
Date: Wed Apr 15 19:14:35 2009
New Revision: 34941
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34941&view=rev
Log:
Fix a compiler warning.
Also make the variable const, since it's not modified later.
Modified:
trunk/src/image.cpp
Modified: trunk/src/image.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/image.cpp?rev=34941&r1=34940&r2=34941&view=diff
==============================================================================
--- trunk/src/image.cpp (original)
+++ trunk/src/image.cpp Wed Apr 15 19:14:35 2009
@@ -322,7 +322,7 @@
{
std::string dir = directory_name(file);
std::string base = file_name(file);
- int pos_ext = base.rfind(".");
+ const size_t pos_ext = base.rfind(".");
std::string loc_base;
if (pos_ext != std::string::npos) {
loc_base = base.substr(0, pos_ext) + suff +
base.substr(pos_ext);
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits