Worked around a GCC3.3.1 signed/unsigned mismatch warning

[SVN r26136]
This commit is contained in:
Andreas Huber 2004-11-06 19:14:13 +00:00
parent 15cb7637f6
commit 5ffd540aa6

View File

@ -295,7 +295,7 @@ int main()
while ( key != 'e' )
{
if ( ( key >= '0' ) && ( key < '0' + noOfBits ) )
if ( ( key >= '0' ) && ( key < static_cast< char >( '0' + noOfBits ) ) )
{
bitMachine.process_event( *pFlipBitEvents[ key - '0' ] );
++eventsSentTotal;