diff src/cmds.c @ 9332:1ff5359ac932

(Fself_insert_command, Fnewline): Don't use XFASTINT as an lvalue.
author Karl Heuer <kwzh@gnu.org>
date Tue, 04 Oct 1994 17:22:08 +0000
parents 84822d6ed3be
children b7f3059c308a
line wrap: on
line diff
--- a/src/cmds.c	Tue Oct 04 17:19:36 1994 +0000
+++ b/src/cmds.c	Tue Oct 04 17:22:08 1994 +0000
@@ -222,7 +222,8 @@
   else
     while (XINT (arg) > 0)
       {
-	XFASTINT (arg)--;	/* Ok since old and new vals both nonneg */
+	/* Ok since old and new vals both nonneg */
+	XSETFASTINT (arg, XFASTINT (arg) - 1);
 	internal_self_insert (XINT (last_command_char), XFASTINT (arg) != 0);
       }
 
@@ -277,7 +278,8 @@
 	insert (&c1, 1);
       else
 	internal_self_insert ('\n', !NILP (arg1));
-      XFASTINT (arg)--;		/* Ok since old and new vals both nonneg */
+      /* Ok since old and new vals both nonneg */
+      XSETFASTINT (arg, XFASTINT (arg) - 1);
     }
 
   if (flag)