diff --git a/panda/src/putil/gamepadButton.cxx b/panda/src/putil/gamepadButton.cxx index fc580e6b5e..12fae57b50 100644 --- a/panda/src/putil/gamepadButton.cxx +++ b/panda/src/putil/gamepadButton.cxx @@ -63,7 +63,7 @@ joystick(int button_number) { if (button_number >= 0) { // "button1" does not exist, it is called "trigger" instead static pvector buttons(1, _trigger); - while (button_number >= buttons.size()) { + while ((size_t)button_number >= buttons.size()) { char numstr[20]; sprintf(numstr, "joystick%d", (int)buttons.size() + 1); ButtonHandle handle;