changeset 84375:3dfbf778e937

(x_set_frame_parameters): Check number is positive before using XFASTINT.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 07 Sep 2007 19:45:04 +0000
parents 1224dec49333
children 584ae8393da8
files src/frame.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/frame.c	Fri Sep 07 19:00:30 2007 +0000
+++ b/src/frame.c	Fri Sep 07 19:45:04 2007 +0000
@@ -3082,9 +3082,9 @@
       prop = parms[i];
       val = values[i];
 
-      if (EQ (prop, Qwidth) && NUMBERP (val))
+      if (EQ (prop, Qwidth) && NATNUMP (val))
 	width = XFASTINT (val);
-      else if (EQ (prop, Qheight) && NUMBERP (val))
+      else if (EQ (prop, Qheight) && NATNUMP (val))
 	height = XFASTINT (val);
       else if (EQ (prop, Qtop))
 	top = val;