Skip to content

Commit 8562bbb

Browse files
committed
rg_system Fixed timeout type in rg_mutex_take
1 parent db72e70 commit 8562bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/retro-go/rg_system.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ bool rg_mutex_take(rg_mutex_t *mutex, int timeoutMS)
763763
{
764764
RG_ASSERT_ARG(mutex);
765765
#if defined(ESP_PLATFORM)
766-
int timeout = timeoutMS < 0 ? portMAX_DELAY : pdMS_TO_TICKS(timeoutMS);
766+
TickType_t timeout = timeoutMS < 0 ? portMAX_DELAY : pdMS_TO_TICKS(timeoutMS);
767767
return xSemaphoreTake((QueueHandle_t)mutex, timeout) == pdPASS;
768768
#elif defined(RG_TARGET_SDL2)
769769
return SDL_LockMutex((SDL_mutex *)mutex) == 0;

0 commit comments

Comments
 (0)