]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_set_frame_parameters): Check number is positive before using XFASTINT.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 7 Sep 2007 19:45:04 +0000 (19:45 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 7 Sep 2007 19:45:04 +0000 (19:45 +0000)
src/frame.c

index 8162cd1fd9484f5488523be12dbd6ad03510df94..affe9180fda0a0d598e6b688da13086b46faa21b 100644 (file)
@@ -3082,9 +3082,9 @@ x_set_frame_parameters (f, alist)
       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;