Skip to content

Commit 975ae94

Browse files
committed
Copy sources[0] to intptr_t
1 parent 2fb2d90 commit 975ae94

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/openal/test_openal_playback.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,11 @@ int main() {
295295

296296
#ifdef __EMSCRIPTEN__
297297

298+
intptr_t first_src = sources[0];
298299
#if defined(TEST_LOOPED_PLAYBACK)
299-
emscripten_set_main_loop_arg(main_tick, (void*)sources[0], 0, 0);
300+
emscripten_set_main_loop_arg(main_tick, (void*)first_src, 0, 0);
300301
#else
301-
emscripten_async_call(playSource, (void*)(sources[0]), 700);
302+
emscripten_async_call(playSource, (void*)first_src, 700);
302303
#endif
303304
#else
304305
usleep(700000);

0 commit comments

Comments
 (0)