test/torturethread.c
changeset 1615 d5298e8f22b3
parent 1495 1dd8bf30a109
child 1618 3b08574f4c60
     1.1 --- a/test/torturethread.c	Fri Mar 31 06:16:20 2006 +0000
     1.2 +++ b/test/torturethread.c	Fri Mar 31 06:27:47 2006 +0000
     1.3 @@ -31,7 +31,7 @@
     1.4  	SDL_Thread *sub_threads[NUMTHREADS];
     1.5  	int flags[NUMTHREADS];
     1.6  	int i;
     1.7 -	uintptr_t tid = (uintptr_t)data;
     1.8 +	int tid = (int)(uintptr_t)data;
     1.9  
    1.10  	fprintf(stderr, "Creating Thread %d\n", tid);
    1.11  
    1.12 @@ -59,7 +59,7 @@
    1.13  int main(int argc, char *argv[])
    1.14  {
    1.15  	SDL_Thread *threads[NUMTHREADS];
    1.16 -	uintptr_t i;
    1.17 +	int i;
    1.18  
    1.19  	/* Load the SDL library */
    1.20  	if ( SDL_Init(0) < 0 ) {
    1.21 @@ -70,7 +70,7 @@
    1.22  	signal(SIGSEGV, SIG_DFL);
    1.23  	for(i = 0; i < NUMTHREADS; i++) {
    1.24  		time_for_threads_to_die[i] = 0;
    1.25 -		threads[i] = SDL_CreateThread(ThreadFunc, (void *) i);
    1.26 +		threads[i] = SDL_CreateThread(ThreadFunc, (void *)(uintptr_t)i);
    1.27  	
    1.28  		if ( threads[i] == NULL ) {
    1.29  			fprintf(stderr,