aboutsummaryrefslogtreecommitdiff
path: root/pthreads/tests/openmp1.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-02-13 11:03:57 +0100
committermarha <marha@users.sourceforge.net>2013-02-13 11:03:57 +0100
commit8fa17b13062c1e2acca542cc7a2ccb09aca874e8 (patch)
tree158a6239b0fdf2abf63fb7365b4cd4886c15f5b1 /pthreads/tests/openmp1.c
parent4a165ef2f762a4ce9155f2a3626692326bda616d (diff)
parentb41f74438672dd682bc01ae818cb3da654f22c1e (diff)
downloadvcxsrv-8fa17b13062c1e2acca542cc7a2ccb09aca874e8.tar.gz
vcxsrv-8fa17b13062c1e2acca542cc7a2ccb09aca874e8.tar.bz2
vcxsrv-8fa17b13062c1e2acca542cc7a2ccb09aca874e8.zip
Merge remote-tracking branch 'origin/released'
* origin/released: Updated to latest CVS version of pthreads Conflicts: pthreads/Makefile
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;