diff test/testhread.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 4436464c4f51
children
line wrap: on
line diff
--- a/test/testhread.c	Wed Dec 16 03:02:31 2009 +0000
+++ b/test/testhread.c	Wed Dec 16 04:48:11 2009 +0000
@@ -21,7 +21,7 @@
 int SDLCALL
 ThreadFunc(void *data)
 {
-    printf("Started thread %s: My thread id is %u\n",
+    printf("Started thread %s: My thread id is %lu\n",
            (char *) data, SDL_ThreadID());
     while (alive) {
         printf("Thread '%s' is alive!\n", (char *) data);