Tests megacon: Match int sizes to pointer parameters to quiet warnings
authorPhil Miller <mille121@illinois.edu>
Thu, 26 May 2011 23:23:55 +0000 (18:23 -0500)
committerPhil Miller <mille121@illinois.edu>
Thu, 26 May 2011 23:23:55 +0000 (18:23 -0500)
tests/converse/megacon/posixth.c

index b04a574af548041371d81eae8972f2b58d687fa2..de4c86b66243d6f18fa8ecb3f884f6fe86c3b4da 100644 (file)
@@ -44,8 +44,8 @@ void posixth_add(Cpthread_mutex_t *mutex, int *var, int val)
 
 void *posixth_fib(void *np)
 {
-  Cpthread_t t1, t2; void *r1, *r2; int total;
-  int n = (size_t)np;
+  Cpthread_t t1, t2; void *r1, *r2;
+  CmiIntPtr n = (size_t)np, total;
   if (n<2) {
     if (CrnRand()&1) CthYield();
     posixth_add(&CpvAccess(leaves_mutex), &CpvAccess(leaves), 1);