Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed SDL_RWread() returning -1 as unsigned instead of 0 if error on …
Browse files Browse the repository at this point in the history
…Android.

Found by Cppcheck (pointed out check of unsigned < 0 which was left in place).
  • Loading branch information
philippwiesemann committed Jul 7, 2013
1 parent ba4d76c commit b2c1f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/android/SDL_android.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit b2c1f99

Please sign in to comment.