Skip to content

Commit

Permalink
level_select_menu.c: Minor compilation warning fix
Browse files Browse the repository at this point in the history
This fixes the following:
warning: comparison of integer expressions of different signedness: 'int' and 'u32' {aka 'unsigned int'} [-Wsign-compare]
  • Loading branch information
mr-video committed Oct 23, 2020
1 parent 1ac3295 commit b0fbef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/menu/level_select_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ int start_demo(int timer)
// if the next demo sequence ID is the count limit, reset it back to
// the first sequence.

if((++gDemoInputListID_2) == gDemo.animDmaTable->count)
if((u32)(++gDemoInputListID_2) == gDemo.animDmaTable->count)
gDemoInputListID_2 = 0;

gCurrDemoInput = ((struct DemoInput *) gDemo.targetAnim) + 1; // add 1 (+4) to the pointer to skip the demoID.
Expand Down

0 comments on commit b0fbef5

Please sign in to comment.