Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed bug #741

The thread ID is an unsigned long so it can hold pthread_t so people can do naughty things with it.

I'm going to be adding additional useful thread API functions, but this should prevent crashes in people's existing code on 64-bit architectures.
  • Loading branch information
slouken committed Dec 16, 2009
1 parent 755b845 commit f44a591e61bdab2082ba8dc16cc1f7f1810b06a9

File 7 of 23 in f44a591

@@ -84,10 +84,10 @@ SDL_SYS_SetupThread(void)
SDL_MaskSignals(NULL);
}

Uint32
SDL_threadID
SDL_ThreadID(void)
{
return ((Uint32) find_thread(NULL));
return ((SDL_threadID) find_thread(NULL));
}

void

0 comments on commit f44a591

Please sign in to comment.