Updated interpreters
[projects/chimara/chimara.git] / interpreters / git / saveundo.c
index 13620f3810455a3313ea5a86af7d3fcbaab01685..aa9de5f1137c3a2e4ef1a9dcd993189796c621da 100644 (file)
@@ -40,7 +40,7 @@ int saveUndo (git_sint32 * base, git_sint32 * sp)
 {
     git_uint32 undoSize = sizeof(UndoRecord);
     git_uint32 mapSize = sizeof(MemoryPage*) * (gEndMem - gRamStart) / 256;
-    git_uint32 stackSize = sizeof(git_sint32*) * (sp - base);
+    git_uint32 stackSize = sizeof(git_sint32) * (sp - base);
     git_uint32 totalSize = undoSize + mapSize + stackSize;
 
     git_uint32 addr = gRamStart; // Address in glulx memory.