summaryrefslogtreecommitdiff
path: root/test/torturethread.c
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2006-03-31 06:27:47 +0000
committerSam Lantinga <slouken@libsdl.org>2006-03-31 06:27:47 +0000
commit9a768f57fba30855c4dffe0fcd0d36f76acd5354 (patch)
tree1c386154053c216f66e7db824a0438e70a1ae7c7 /test/torturethread.c
parentab73d847ffb53f4a9f785cca01753212c97a0123 (diff)
downloadsdl-9a768f57fba30855c4dffe0fcd0d36f76acd5354.tar.gz
Ugh, more 64-bit cleanup
Diffstat (limited to 'test/torturethread.c')
-rw-r--r--test/torturethread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/torturethread.c b/test/torturethread.c
index d85b48f0e..997ae0b63 100644
--- a/test/torturethread.c
+++ b/test/torturethread.c
@@ -31,7 +31,7 @@ int ThreadFunc(void *data) {
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 ThreadFunc(void *data) {
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 @@ int main(int argc, char *argv[])
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,