aboutsummaryrefslogtreecommitdiff
path: root/pthreads/tests/openmp1.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-02-13 10:41:10 +0100
committermarha <marha@users.sourceforge.net>2013-02-13 10:41:10 +0100
commitb41f74438672dd682bc01ae818cb3da654f22c1e (patch)
tree07674ef1368a5427a75080528d8cee74234f6b28 /pthreads/tests/openmp1.c
parentaaf21968deb85b635cb6aa6544df233ea5981346 (diff)
downloadvcxsrv-b41f74438672dd682bc01ae818cb3da654f22c1e.tar.gz
vcxsrv-b41f74438672dd682bc01ae818cb3da654f22c1e.tar.bz2
vcxsrv-b41f74438672dd682bc01ae818cb3da654f22c1e.zip
Updated to latest CVS version of pthreads
Diffstat (limited to 'pthreads/tests/openmp1.c')
-rw-r--r--pthreads/tests/openmp1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pthreads/tests/openmp1.c b/pthreads/tests/openmp1.c
index ee36e75c8..b5791e2ea 100644
--- a/pthreads/tests/openmp1.c
+++ b/pthreads/tests/openmp1.c
@@ -28,7 +28,7 @@ void *_thread(void* Id) {
if (Verbose && i%1000==0) {
int tid = omp_get_thread_num();
# pragma omp critical
- printf("thread %d : tid %d handles %d\n",(int)Id,tid,i);
+ printf("thread %d : tid %d handles %d\n",(int)(size_t)Id,tid,i);
}
#endif
@@ -43,9 +43,9 @@ void *_thread(void* Id) {
#ifdef _OPENMP
# pragma omp critical
#endif
- printf("Id %d : %s : %d(should be %d)\n",(int)Id, __FUNCTION__, Sum,ShouldSum);
+ printf("Id %d : %s : %d(should be %d)\n",(int)(size_t)Id, __FUNCTION__, Sum,ShouldSum);
}
- if (Sum == ShouldSum) ThreadOK[(int)Id] = 1;
+ if (Sum == ShouldSum) ThreadOK[(int)(size_t)Id] = 1;
return NULL;
}
@@ -61,7 +61,7 @@ void MainThread() {
int tid = omp_get_thread_num();
# pragma omp critical
printf("Main : tid %d\n",tid);
- _thread((void *)tid);
+ _thread((void *)(size_t)tid);
#endif
}
return;