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

index 34c3f8906a573012f0c9ac577fd2c4c3d2244e70..76e6ac7206b330fc22e60da9fd7e4bb6d9cbb3ff 100644 (file)
@@ -173,7 +173,7 @@ void *transRead(void * oid, void *gl) {
     size = basesize + sizeof(objheader_t)+metasize;
     char *tmpptr = (char *) objstrAlloc(size);
     bzero(objcopy, metasize);//clear out stm data
-    objcopy=tmpptr+metasize;
+    objcopy=(objheader_t *) (tmpptr+metasize);
     A_memcpy(objcopy, header, sizeof(objheader_t)+sizeof(struct ArrayObject)); //copy the metadata and base array info
   } else {
     GETSIZE(size, header);