Player: Fix signedness error
authorBen Gamari <bgamari.foss@gmail.com>
Fri, 2 Nov 2012 15:22:13 +0000 (11:22 -0400)
committerBen Gamari <bgamari.foss@gmail.com>
Fri, 2 Nov 2012 15:22:13 +0000 (11:22 -0400)
src/modules/robot/Player.cpp

index 8a0be9d..090d134 100644 (file)
@@ -34,7 +34,7 @@ Block* Player::new_block(){
     Block* block = this->queue.get_ref( this->queue.size() );
     // Then clean it up 
     if( block->player == this ){
-        for(short index=0; index<block->gcodes.size(); index++){
+        for(unsigned int index=0; index<block->gcodes.size(); index++){
             block->gcodes.pop_back(); 
         }     
     }