wiiu: fix cast for osthread (#750)

This commit is contained in:
Craig authored and GitHub committed 2026-09-06 16:25:24 +03:00
1 parent b2c33a271b
commit 6536174a80
1 file changed
+3 -2
+3 -2
View File
@@ -116,12 +116,13 @@ static INLINE int pthread_detach(pthread_t thread)
static INLINE int pthread_join(pthread_t thread, void **retval)
{
OSThread *t = (OSThread *)thread;
(void)retval;
bool ret = OSJoinThread(thread, NULL);
if(ret == true)
{
free(thread->stackEnd);
free(thread);
free(t->stackEnd);
free(t);
}
return (ret == true) ? 0 : -1;
}