diff options
Diffstat (limited to 'src/interfaces/ecpg/test/expected/thread-thread_implicit.c')
| -rw-r--r-- | src/interfaces/ecpg/test/expected/thread-thread_implicit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interfaces/ecpg/test/expected/thread-thread_implicit.c b/src/interfaces/ecpg/test/expected/thread-thread_implicit.c index d0352765486..6c7adb062c8 100644 --- a/src/interfaces/ecpg/test/expected/thread-thread_implicit.c +++ b/src/interfaces/ecpg/test/expected/thread-thread_implicit.c @@ -11,7 +11,7 @@ * Thread test program * by Lee Kindness. */ - +#include <stdint.h> #include <stdlib.h> #include "ecpg_config.h" @@ -53,7 +53,7 @@ int main() #else HANDLE *threads; #endif - int n; + intptr_t n; /* exec sql begin declare section */ @@ -97,7 +97,7 @@ int main() for( n = 0; n < nthreads; n++ ) { #ifndef WIN32 - pthread_create(&threads[n], NULL, test_thread, (void *) (long) (n + 1)); + pthread_create(&threads[n], NULL, test_thread, (void *) (n + 1)); #else threads[n] = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) test_thread, (void *) (n+1), 0, NULL); #endif @@ -139,7 +139,7 @@ int main() void *test_thread(void *arg) { - long threadnum = (long)arg; + long threadnum = (intptr_t) arg; /* exec sql begin declare section */ |
