We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db72e70 commit 8562bbbCopy full SHA for 8562bbb
components/retro-go/rg_system.c
@@ -763,7 +763,7 @@ bool rg_mutex_take(rg_mutex_t *mutex, int timeoutMS)
763
{
764
RG_ASSERT_ARG(mutex);
765
#if defined(ESP_PLATFORM)
766
- int timeout = timeoutMS < 0 ? portMAX_DELAY : pdMS_TO_TICKS(timeoutMS);
+ TickType_t timeout = timeoutMS < 0 ? portMAX_DELAY : pdMS_TO_TICKS(timeoutMS);
767
return xSemaphoreTake((QueueHandle_t)mutex, timeout) == pdPASS;
768
#elif defined(RG_TARGET_SDL2)
769
return SDL_LockMutex((SDL_mutex *)mutex) == 0;
0 commit comments