From: Stefan Monnier Date: Fri, 7 Sep 2007 19:45:04 +0000 (+0000) Subject: (x_set_frame_parameters): Check number is positive before using XFASTINT. X-Git-Tag: emacs-pretest-23.0.90~11036 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=629c715ddf722b68e096f4569e23a9c270898dfa;p=emacs.git (x_set_frame_parameters): Check number is positive before using XFASTINT. --- diff --git a/src/frame.c b/src/frame.c index 8162cd1fd94..affe9180fda 100644 --- a/src/frame.c +++ b/src/frame.c @@ -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;