Reduction userFlag: Cast default value of -1 to assigned type, to silence warnings
authorPhil Miller <mille121@illinois.edu>
Tue, 1 Mar 2011 21:03:56 +0000 (15:03 -0600)
committerPhil Miller <mille121@illinois.edu>
Tue, 1 Mar 2011 21:03:56 +0000 (15:03 -0600)
src/ck-core/cknodegroupreduction.h

index 5fee5610b718dcbbfb6bd9b892cd0d2f7d07257d..b5204321967c0b424c5b2907037471cfb5a1869a 100644 (file)
@@ -124,12 +124,12 @@ private:
 
 #define CK_REDUCTION_CONTRIBUTE_METHODS_DECL \
   void contribute(int dataSize,const void *data,CkReduction::reducerType type, \
-       CMK_REFNUM_TYPE userFlag=-1); \
+       CMK_REFNUM_TYPE userFlag=(CMK_REFNUM_TYPE)-1); \
   void contribute(int dataSize,const void *data,CkReduction::reducerType type, \
-       const CkCallback &cb,CMK_REFNUM_TYPE userFlag=-1); \
+       const CkCallback &cb,CMK_REFNUM_TYPE userFlag=(CMK_REFNUM_TYPE)-1); \
   void contribute(CkReductionMsg *msg); \
-  void contribute(const CkCallback &cb,CMK_REFNUM_TYPE userFlag=-1);\
-  void contribute(CMK_REFNUM_TYPE userFlag=-1);\
+  void contribute(const CkCallback &cb,CMK_REFNUM_TYPE userFlag=(CMK_REFNUM_TYPE)-1);\
+  void contribute(CMK_REFNUM_TYPE userFlag=(CMK_REFNUM_TYPE)-1);\