mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
putil: fix a compiler warning
This commit is contained in:
parent
1d6c3f6486
commit
aae2b1e5ad
@ -63,7 +63,7 @@ joystick(int button_number) {
|
||||
if (button_number >= 0) {
|
||||
// "button1" does not exist, it is called "trigger" instead
|
||||
static pvector<ButtonHandle> 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user