Skip to content

Commit

Permalink
Compare uint
Browse files Browse the repository at this point in the history
  • Loading branch information
cbinners committed May 27, 2020
1 parent 7f85a61 commit ce33213
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gym_battlesnake/src/gamewrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class GameWrapper {

/* Randomly* orient the board by flipping in x and y */
unsigned orientation(unsigned game_id, unsigned turn, unsigned player_id) {
if (fixed_orientation_ > 0) {
return 0U;
if (fixed_orientation_ > 0u) {
return 0u;
}

return std::hash<unsigned>{}(game_id) ^ player_id ^
Expand Down

0 comments on commit ce33213

Please sign in to comment.