Fixed bug 3999 - Build failed when try to build with configure script for Android
authorSam Lantinga <slouken@libsdl.org>
Mon, 11 Dec 2017 14:44:34 -0800
changeset 117635c8fc26757d7
parent 11762 c4900725a75a
child 11764 9db3967460f1
Fixed bug 3999 - Build failed when try to build with configure script for Android
src/haptic/android/SDL_syshaptic.c
     1.1 --- a/src/haptic/android/SDL_syshaptic.c	Mon Dec 11 12:00:12 2017 -0800
     1.2 +++ b/src/haptic/android/SDL_syshaptic.c	Mon Dec 11 14:44:34 2017 -0800
     1.3 @@ -165,8 +165,7 @@
     1.4  {
     1.5      SDL_hapticlist_item *item;
     1.6      item = HapticByDevId(((joystick_hwdata *)joystick->hwdata)->device_id);
     1.7 -    int ret = (item != NULL ? 1 : 0);
     1.8 -    return ret;
     1.9 +    return (item != NULL) ? 1 : 0;
    1.10  }
    1.11  
    1.12