Fix typo causing the PowerPC OS X build to fail
authorIan Lynagh <igloo@earth.li>
Wed, 31 Jan 2007 12:01:53 +0000 (12:01 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 31 Jan 2007 12:01:53 +0000 (12:01 +0000)
rts/Linker.c

index 789093d..79febe7 100644 (file)
@@ -1324,7 +1324,7 @@ loadObj( char *path )
     // that the actual sections end up aligned again.
    oc->misalignment = machoGetMisalignment(f);
    oc->image = stgMallocBytes(oc->fileSize + oc->misalignment, "loadObj(image)");
-   oc->image += misalignment;
+   oc->image += oc->misalignment;
 #  else
    oc->image = stgMallocBytes(oc->fileSize, "loadObj(image)");
 #  endif