Skip to content

Commit c366ea4

Browse files
committed
Fix Regression from 38a225c
1 parent 38a225c commit c366ea4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jme3-android-native/src/native/jme_decode/com_jme3_audio_plugins_NativeVorbisFile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,15 +298,15 @@ JNIEXPORT void JNICALL Java_com_jme3_audio_plugins_NativeVorbisFile_readFully
298298
wrapper->env = env;
299299

300300
char err[512];
301-
byte* byteBufferPtr = (byte*)(*env)->GetDirectBufferAddress(env, buf);
301+
unsigned char* byteBufferPtr = (unsigned char*)(*env)->GetDirectBufferAddress(env, buf);
302302
jlong byteBufferCap = (*env)->GetDirectBufferCapacity(env, buf);
303303

304304
int offset = 0;
305305
int remaining = byteBufferCap;
306306

307307
while (remaining > 0)
308308
{
309-
long result = ov_read(ovf, byteBufferPtr + offset, remaining, &bitstream);
309+
long result = ov_read(ovf, (void*)(byteBufferPtr + offset), remaining, &bitstream);
310310

311311
LOGI("ov_read(%d, %d) = %ld", offset, remaining, result);
312312

0 commit comments

Comments
 (0)