mirror of
https://github.com/yawut/SDL.git
synced 2026-09-14 20:16:32 -05:00
Fixed SDL_RWread() returning -1 as unsigned instead of 0 if error on Android.
Found by Cppcheck (pointed out check of unsigned < 0 which was left in place).
This commit is contained in:
@@ -757,7 +757,7 @@ extern "C" size_t Android_JNI_FileRead(SDL_RWops* ctx, void* buffer,
|
||||
|
||||
JNIEnv *mEnv = Android_JNI_GetEnv();
|
||||
if (!refs.init(mEnv)) {
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
jobject readableByteChannel = (jobject)ctx->hidden.androidio.readableByteChannelRef;
|
||||
|
||||
Reference in New Issue
Block a user