test/torturethread.c
changeset 1615 d5298e8f22b3
parent 1495 1dd8bf30a109
child 1618 3b08574f4c60
--- a/test/torturethread.c	Fri Mar 31 06:16:20 2006 +0000
+++ b/test/torturethread.c	Fri Mar 31 06:27:47 2006 +0000
@@ -31,7 +31,7 @@
 	SDL_Thread *sub_threads[NUMTHREADS];
 	int flags[NUMTHREADS];
 	int i;
-	uintptr_t tid = (uintptr_t)data;
+	int tid = (int)(uintptr_t)data;
 
 	fprintf(stderr, "Creating Thread %d\n", tid);
 
@@ -59,7 +59,7 @@
 int main(int argc, char *argv[])
 {
 	SDL_Thread *threads[NUMTHREADS];
-	uintptr_t i;
+	int i;
 
 	/* Load the SDL library */
 	if ( SDL_Init(0) < 0 ) {
@@ -70,7 +70,7 @@
 	signal(SIGSEGV, SIG_DFL);
 	for(i = 0; i < NUMTHREADS; i++) {
 		time_for_threads_to_die[i] = 0;
-		threads[i] = SDL_CreateThread(ThreadFunc, (void *) i);
+		threads[i] = SDL_CreateThread(ThreadFunc, (void *)(uintptr_t)i);
 	
 		if ( threads[i] == NULL ) {
 			fprintf(stderr,