commit | eb219e2a047ff6c7e1ccf332d3359ad12054d0cb | [log] [tgz] |
---|---|---|
author | Sam Lantinga <slouken@libsdl.org> | Mon Dec 11 14:44:34 2017 -0800 |
committer | Sam Lantinga <slouken@libsdl.org> | Mon Dec 11 14:44:34 2017 -0800 |
tree | 6ee7db21767106dd088c88fe9d8896dfdb9c3101 | |
parent | aef30f74b71cd1958cb0ccb4ccc488111ee08c38 [diff] |
Fixed bug 3999 - Build failed when try to build with configure script for Android
diff --git a/src/haptic/android/SDL_syshaptic.c b/src/haptic/android/SDL_syshaptic.c index 9da1efc..feeed6c 100644 --- a/src/haptic/android/SDL_syshaptic.c +++ b/src/haptic/android/SDL_syshaptic.c
@@ -165,8 +165,7 @@ { SDL_hapticlist_item *item; item = HapticByDevId(((joystick_hwdata *)joystick->hwdata)->device_id); - int ret = (item != NULL ? 1 : 0); - return ret; + return (item != NULL) ? 1 : 0; }