Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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).
  • Loading branch information
philippwiesemann committed Jul 7, 2013
1 parent ba4d76c commit b2c1f999de6f17aa8a171b9c620de5af5fc99a65
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/android/SDL_android.cpp
@@ -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;

0 comments on commit b2c1f99

Please sign in to comment.