Scope-eye.net Git Repository
/
liskon_frotz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c43554f
)
Turbo C doesn't like this way of doing macros.
author
David Griffith
<dave@661.org>
Sun, 19 May 2019 03:55:01 +0000
(20:55 -0700)
committer
David Griffith
<dave@661.org>
Mon, 27 May 2019 02:32:11 +0000
(19:32 -0700)
src/common/fastmem.c
patch
|
blob
|
history
diff --git
a/src/common/fastmem.c
b/src/common/fastmem.c
index 9d5950ce3666181396e96ea995c7947d5930336a..52378d14d4dfe5390de7cb2ff8d199f937e87b9f 100644
(file)
--- a/
src/common/fastmem.c
+++ b/
src/common/fastmem.c
@@
-869,6
+869,8
@@
static void mem_undiff (zbyte *diff, long diff_length, zbyte *dest)
*/
int restore_undo (void)
{
+ long pc = curr_undo->pc;
+
if (f_setup.undo_slots == 0) /* undo feature unavailable */
return -1;
@@
-880,7
+882,8
@@
int restore_undo (void)
/* undo possible */
memmove (zmp, prev_zmp, h_dynamic_size);
- SET_PC (curr_undo->pc);
+ SET_PC (pc);
+ curr_undo->pc = pc;
sp = stack + STACK_SIZE - curr_undo->stack_size;
fp = stack + curr_undo->frame_offset;
frame_count = curr_undo->frame_count;