We are comparing 16-bit values
authorSam Lantinga <slouken@libsdl.org>
Thu, 24 Nov 2016 11:53:23 -0800
changeset 106473b96d0f403d3
parent 10646 cc3e4b8f1a8d
child 10648 dc5921f3dac9
We are comparing 16-bit values
src/joystick/SDL_joystick.c
     1.1 --- a/src/joystick/SDL_joystick.c	Wed Nov 23 21:52:48 2016 -0500
     1.2 +++ b/src/joystick/SDL_joystick.c	Thu Nov 24 11:53:23 2016 -0800
     1.3 @@ -822,11 +822,11 @@
     1.4  
     1.5      /* If the GUID fits the form of BUS 0000 VENDOR 0000 PRODUCT 0000, return the data */
     1.6      if (/* guid16[0] is device bus type */
     1.7 -        guid16[1] == 0x00 &&
     1.8 +        guid16[1] == 0x0000 &&
     1.9          /* guid16[2] is vendor ID */
    1.10 -        guid16[3] == 0x00 &&
    1.11 +        guid16[3] == 0x0000 &&
    1.12          /* guid16[4] is product ID */
    1.13 -        guid16[5] == 0x00
    1.14 +        guid16[5] == 0x0000
    1.15          /* guid16[6] is product version */
    1.16      ) {
    1.17          if (vendor) {