changeset 58448:f3a76c43ac80

(Fset_window_scroll_bars): Don't use XINT if it isn't int. (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 23 Nov 2004 05:05:34 +0000
parents be0cfc84ea0f
children 377948a6af9a
files src/window.c
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Tue Nov 23 00:51:55 2004 +0000
+++ b/src/window.c	Tue Nov 23 05:05:34 2004 +0000
@@ -1611,7 +1611,7 @@
 		   : Qnil);
   else if (EQ (*all_frames, Qvisible))
     ;
-  else if (XFASTINT (*all_frames) == 0)
+  else if (EQ (*all_frames, make_number (0)))
     ;
   else if (FRAMEP (*all_frames))
     ;
@@ -1885,7 +1885,7 @@
 
   if (f)
     frame_arg = Qlambda;
-  else if (XFASTINT (frames) == 0)
+  else if (EQ (frames, make_number (0)))
     frame_arg = frames;
   else if (EQ (frames, Qvisible))
     frame_arg = frames;
@@ -6181,10 +6181,12 @@
   struct window *w = decode_window (window);
 
   if (!NILP (width))
-    CHECK_NATNUM (width);
-
-  if (XINT (width) == 0)
-    vertical_type = Qnil;
+    {
+      CHECK_NATNUM (width);
+
+      if (XINT (width) == 0)
+	vertical_type = Qnil;
+    }
 
   if (!(EQ (vertical_type, Qnil)
 	|| EQ (vertical_type, Qleft)