fixed a couple compiler warnings.
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 19 Nov 2007 23:27:21 +0000 (23:27 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 19 Nov 2007 23:27:21 +0000 (23:27 +0000)
src/arch/util/machine-smp.c

index cde42b809c2bcdcfbb1c32b220bb47339fc77c7c..1e5c1418d5298731f636549b448d4fad9c0d2a62 100644 (file)
@@ -353,7 +353,7 @@ static void *call_startfn(void *vindex)
 
 static void *call_startfn(void *vindex)
 {
 
 static void *call_startfn(void *vindex)
 {
-  int index = (int)vindex;
+  size_t index = (size_t)vindex;
   CmiState state = Cmi_state_vector + index;
   pthread_setspecific(Cmi_state_key, state);
 
   CmiState state = Cmi_state_vector + index;
   pthread_setspecific(Cmi_state_key, state);
 
@@ -374,7 +374,8 @@ static void *call_startfn(void *vindex)
 static void CmiStartThreads(char **argv)
 {
   pthread_t pid;
 static void CmiStartThreads(char **argv)
 {
   pthread_t pid;
-  int i, ok, tocreate;
+  size_t i;
+  int ok, tocreate;
   pthread_attr_t attr;
 
   CmiMemLock_lock=CmiCreateLock();
   pthread_attr_t attr;
 
   CmiMemLock_lock=CmiCreateLock();