change
authorbdemsky <bdemsky>
Wed, 14 Oct 2009 08:15:51 +0000 (08:15 +0000)
committerbdemsky <bdemsky>
Wed, 14 Oct 2009 08:15:51 +0000 (08:15 +0000)
Robust/src/Runtime/STM/stm.c

index 76e6ac7206b330fc22e60da9fd7e4bb6d9cbb3ff..0db8e33ce4ed948804df36465cec9db45cf6331c 100644 (file)
@@ -203,7 +203,7 @@ void *transRead(void * oid, void *gl) {
 #ifdef STMARRAY
 //caller needs to mark data as present
  void arraycopy(struct ArrayObject *oid, int byteindex) {
-   struct ArrayObject * orig=oid->___objlocation___;
+   struct ArrayObject * orig=(struct ArrayObject *) oid->___objlocation___;
    int baseoffset=byteindex&HIGHMASK;
    A_memcpy(((char *)&oid[1])+baseoffset, ((char *)&orig[1])+baseoffset, INDEXLENGTH);
    if (oid->lowoffset>baseoffset)