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:
Philipp Wiesemann
2013-07-07 16:11:29 +02:00
parent 6174013522
commit ac7859a2dc

View File

@@ -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;