One less warning when building with GCC 4.7.1.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5557 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
b16690139b
commit
6c4c51a646
@ -121,7 +121,8 @@ MA 02110-1301, USA.
|
|||||||
if (!_justSwitched && wave > _wave) // don't test for wave >= _wave - could give wrong results with very low frequencies
|
if (!_justSwitched && wave > _wave) // don't test for wave >= _wave - could give wrong results with very low frequencies
|
||||||
{
|
{
|
||||||
_justSwitched = YES;
|
_justSwitched = YES;
|
||||||
_activeColor = ++_activeColor % count;
|
++_activeColor;
|
||||||
|
_activeColor %= count; //_activeColor = ++_activeColor % count; is potentially undefined operation
|
||||||
[self setColor:[_colors objectAtIndex:_activeColor]];
|
[self setColor:[_colors objectAtIndex:_activeColor]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user