summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/editfns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 67758db088b..7ae39851ef5 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -603,7 +603,7 @@ If POS is out of range, the value is nil.")
if (NILP (pos))
{
pos_byte = PT_BYTE;
- pos = PT;
+ XSETFASTINT (pos, PT);
}
if (MARKERP (pos))
@@ -637,7 +637,7 @@ If POS is out of range, the value is nil.")
if (NILP (pos))
{
pos_byte = PT_BYTE;
- pos = PT;
+ XSETFASTINT (pos, PT);
}
if (MARKERP (pos))