summaryrefslogtreecommitdiff
path: root/src/undo.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-10-04 16:15:52 +0000
committerKarl Heuer <kwzh@gnu.org>1994-10-04 16:15:52 +0000
commitb6bd6ce6ea2fbaec4ceeac296c3bb9217c018e4f (patch)
tree9fee587a56839b9a1653ce33407c75f282a48390 /src/undo.c
parent81b0559bf731da7bb5da20fb2c9a2641c6b84dea (diff)
downloademacs-b6bd6ce6ea2fbaec4ceeac296c3bb9217c018e4f.tar.gz
(record_delete, record_first_change): Don't use XFASTINT as an lvalue.
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/undo.c b/src/undo.c
index be6d5062422..9fdba2f1d8f 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -111,9 +111,9 @@ record_delete (beg, length)
if (point == beg + length)
XSETINT (sbeg, -beg);
else
- XFASTINT (sbeg) = beg;
- XFASTINT (lbeg) = beg;
- XFASTINT (lend) = beg + length;
+ XSETFASTINT (sbeg, beg);
+ XSETFASTINT (lbeg, beg);
+ XSETFASTINT (lend, beg + length);
/* If we are just after an undo boundary, and
point wasn't at start of deleted range, record where it was. */
@@ -154,8 +154,8 @@ record_first_change ()
Fundo_boundary ();
XSETBUFFER (last_undo_buffer, current_buffer);
- XFASTINT (high) = (current_buffer->modtime >> 16) & 0xffff;
- XFASTINT (low) = current_buffer->modtime & 0xffff;
+ XSETFASTINT (high, (current_buffer->modtime >> 16) & 0xffff);
+ XSETFASTINT (low, current_buffer->modtime & 0xffff);
current_buffer->undo_list = Fcons (Fcons (Qt, Fcons (high, low)), current_buffer->undo_list);
}