Mercurial > sdl-ios-xcode
diff test/testerror.c @ 3578:0d1b16ee0bca
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.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 16 Dec 2009 04:48:11 +0000 |
parents | c121d94672cb |
children |
line wrap: on
line diff
--- a/test/testerror.c Wed Dec 16 03:02:31 2009 +0000 +++ b/test/testerror.c Wed Dec 16 04:48:11 2009 +0000 @@ -22,7 +22,7 @@ ThreadFunc(void *data) { /* Set the child thread error string */ - SDL_SetError("Thread %s (%d) had a problem: %s", + SDL_SetError("Thread %s (%lu) had a problem: %s", (char *) data, SDL_ThreadID(), "nevermind"); while (alive) { printf("Thread '%s' is alive!\n", (char *) data);