aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorKarl Heuer1994-10-04 19:36:47 +0000
committerKarl Heuer1994-10-04 19:36:47 +0000
commit0319206797b85d1ae46afaff47beb09288566e59 (patch)
tree9a71141dc98b9c88f1c0fa26e4ccdc148af13224 /src/buffer.c
parent7c6f34f0cc37fc1da2b4e3feb084d4ffb935f0cb (diff)
downloademacs-0319206797b85d1ae46afaff47beb09288566e59.tar.gz
emacs-0319206797b85d1ae46afaff47beb09288566e59.zip
(validate_region): Swap using temp Lisp_Object, not int.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 96ce4e702de..0642742fe1c 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1079,16 +1079,13 @@ so the buffer is truly empty after this.")
1079validate_region (b, e) 1079validate_region (b, e)
1080 register Lisp_Object *b, *e; 1080 register Lisp_Object *b, *e;
1081{ 1081{
1082 register int i;
1083
1084 CHECK_NUMBER_COERCE_MARKER (*b, 0); 1082 CHECK_NUMBER_COERCE_MARKER (*b, 0);
1085 CHECK_NUMBER_COERCE_MARKER (*e, 1); 1083 CHECK_NUMBER_COERCE_MARKER (*e, 1);
1086 1084
1087 if (XINT (*b) > XINT (*e)) 1085 if (XINT (*b) > XINT (*e))
1088 { 1086 {
1089 i = XFASTINT (*b); /* This is legit even if *b is < 0 */ 1087 Lisp_Object tem;
1090 *b = *e; 1088 tem = *b; *b = *e; *e = tem;
1091 XSETFASTINT (*e, i); /* because this is all we do with i. */
1092 } 1089 }
1093 1090
1094 if (!(BEGV <= XINT (*b) && XINT (*b) <= XINT (*e) 1091 if (!(BEGV <= XINT (*b) && XINT (*b) <= XINT (*e)