Skip to content
Snippets Groups Projects
Commit 875c77ea authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Resolve GCC warnings: cast from pointer to integer of different size

Pretty sure this is what intptr_t was created for.
parent 18607b08
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4229 passed
......@@ -1154,8 +1154,8 @@ void sdl_video_event_thread(void *data)
sdl_mode = false;
pthread_mutex_unlock(&sdl_mode_mutex);
cvstat.winwidth = (int)ev.user.data1;
cvstat.winheight = (int)ev.user.data2;
cvstat.winwidth = (intptr_t)ev.user.data1;
cvstat.winheight = (intptr_t)ev.user.data2;
internal_setwinsize(&cvstat, true);
sdl_ufunc_retval=0;
sem_post(&sdl_ufunc_ret);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment