From aae2b1e5ad5ea582ee5895e136482986e0b3ae34 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 26 Aug 2018 21:18:11 +0200 Subject: [PATCH] putil: fix a compiler warning --- panda/src/putil/gamepadButton.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;