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:
parent
bbe065f50f
commit
0586d55560
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue