avoid a "compiler bug" with optimization that does not like copy from CkArrayIndex...
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 12 Jun 2009 19:25:38 +0000 (19:25 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 12 Jun 2009 19:25:38 +0000 (19:25 +0000)
src/ck-core/ckcallback.h

index 50ed2b3ab08ee4648d5cb3403ab90898f311f0c9..8a1ce685b56b9c807d17237ed83bbdbe6d5dcaa6 100644 (file)
@@ -126,7 +126,7 @@ public:
                {d.array.ep=ep; d.array.id=id;}
        CkCallback(int ep,const CkArrayIndex &idx,const CkArrayID &id,CmiBool doInline=CmiFalse)
                :type(doInline?isendArray:sendArray) 
-               {d.array.ep=ep; d.array.id=id; d.array.idx.asMax()=idx;}
+               {d.array.ep=ep; d.array.id=id; d.array.idx.asMax()=*(CkArrayIndexMax*)&idx;}
        CkCallback(int ep,const CProxyElement_ArrayBase &arrElt,CmiBool doInline=CmiFalse);
 
        CkCallback(Chare *p, int ep, CmiBool doInline=CmiFalse);