mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -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) {
|
if (button_number >= 0) {
|
||||||
// "button1" does not exist, it is called "trigger" instead
|
// "button1" does not exist, it is called "trigger" instead
|
||||||
static pvector<ButtonHandle> buttons(1, _trigger);
|
static pvector<ButtonHandle> buttons(1, _trigger);
|
||||||
while (button_number >= buttons.size()) {
|
while ((size_t)button_number >= buttons.size()) {
|
||||||
char numstr[20];
|
char numstr[20];
|
||||||
sprintf(numstr, "joystick%d", (int)buttons.size() + 1);
|
sprintf(numstr, "joystick%d", (int)buttons.size() + 1);
|
||||||
ButtonHandle handle;
|
ButtonHandle handle;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user