(svn r21531) -Fix: gcc 3.4 warning

This commit is contained in:
smatz 2010-12-16 14:03:21 +00:00
parent 92d54c1e96
commit 728220ec88
1 changed files with 2 additions and 2 deletions

View File

@ -1764,8 +1764,8 @@ static void SetSelectionTilesDirty()
/* a_size, b_size describe a rectangle with rotated coordinates */
int a_size = x_size + y_size, b_size = x_size - y_size;
int interval_a = a_size < 0 ? -(int)TILE_SIZE : TILE_SIZE;
int interval_b = b_size < 0 ? -(int)TILE_SIZE : TILE_SIZE;
int interval_a = a_size < 0 ? -(int)TILE_SIZE : (int)TILE_SIZE;
int interval_b = b_size < 0 ? -(int)TILE_SIZE : (int)TILE_SIZE;
for (int a = -interval_a; a != a_size + interval_a; a += interval_a) {
for (int b = -interval_b; b != b_size + interval_b; b += interval_b) {