From 629c715ddf722b68e096f4569e23a9c270898dfa Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 7 Sep 2007 19:45:04 +0000 Subject: [PATCH] (x_set_frame_parameters): Check number is positive before using XFASTINT. --- src/frame.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5