aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-01-10 22:03:13 +0000
committerKarl Heuer1995-01-10 22:03:13 +0000
commitb5a6948eea3a3eb5999d3b44b12820b16d513bde (patch)
tree8c44304f1f8e1862c7761c10aa4b1d6498f8cf15 /src
parent83951f1ea4914e5df86c4c883c88f907ebf233f3 (diff)
downloademacs-b5a6948eea3a3eb5999d3b44b12820b16d513bde.tar.gz
emacs-b5a6948eea3a3eb5999d3b44b12820b16d513bde.zip
(Fnarrow_to_region): Swap using temp Lisp_Object, not int.
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/editfns.c b/src/editfns.c
index a7537be357d..657aca333f9 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1403,16 +1403,13 @@ or markers) bounding the text that should remain visible.")
1403 (b, e) 1403 (b, e)
1404 register Lisp_Object b, e; 1404 register Lisp_Object b, e;
1405{ 1405{
1406 register EMACS_INT i;
1407
1408 CHECK_NUMBER_COERCE_MARKER (b, 0); 1406 CHECK_NUMBER_COERCE_MARKER (b, 0);
1409 CHECK_NUMBER_COERCE_MARKER (e, 1); 1407 CHECK_NUMBER_COERCE_MARKER (e, 1);
1410 1408
1411 if (XINT (b) > XINT (e)) 1409 if (XINT (b) > XINT (e))
1412 { 1410 {
1413 i = XFASTINT (b); 1411 Lisp_Object tem;
1414 b = e; 1412 tem = b; b = e; e = tem;
1415 XSETFASTINT (e, i);
1416 } 1413 }
1417 1414
1418 if (!(BEG <= XINT (b) && XINT (b) <= XINT (e) && XINT (e) <= Z)) 1415 if (!(BEG <= XINT (b) && XINT (b) <= XINT (e) && XINT (e) <= Z))