Author: brunowolff
Date: Wed Mar 19 17:45:50 2008
New Revision: 24847

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24847&view=rev
Log:
Semantic change.
I silenced a gcc 4.3 warning by adding parens around a shift. Based on what
I see in the code it looks like the parens really were needed and that
previously it was doing the wrong thing.

Modified:
    trunk/src/ai_python.cpp

Modified: trunk/src/ai_python.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai_python.cpp?rev=24847&r1=24846&r2=24847&view=diff
==============================================================================
--- trunk/src/ai_python.cpp (original)
+++ trunk/src/ai_python.cpp Wed Mar 19 17:45:50 2008
@@ -738,7 +738,7 @@
        // e.g. when checking all positions in a certain radius at the map 
border.
        unsigned char x = static_cast<unsigned>(obj->location_->x);
        unsigned char y = static_cast<unsigned>(obj->location_->y);
-       return x << 8 + y;
+       return (x << 8) + y;
 }
 
 static PyGetSetDef location_getseters[] = {


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to