aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2007-09-07 19:45:04 +0000
committerStefan Monnier2007-09-07 19:45:04 +0000
commit629c715ddf722b68e096f4569e23a9c270898dfa (patch)
tree77a4b53c49771ed682db1850218639071603e10b
parent98a6dc9f68be9d66b3c23caf00529e16c38d356d (diff)
downloademacs-629c715ddf722b68e096f4569e23a9c270898dfa.tar.gz
emacs-629c715ddf722b68e096f4569e23a9c270898dfa.zip
(x_set_frame_parameters): Check number is positive before using XFASTINT.
-rw-r--r--src/frame.c4
1 files 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)
3082 prop = parms[i]; 3082 prop = parms[i];
3083 val = values[i]; 3083 val = values[i];
3084 3084
3085 if (EQ (prop, Qwidth) && NUMBERP (val)) 3085 if (EQ (prop, Qwidth) && NATNUMP (val))
3086 width = XFASTINT (val); 3086 width = XFASTINT (val);
3087 else if (EQ (prop, Qheight) && NUMBERP (val)) 3087 else if (EQ (prop, Qheight) && NATNUMP (val))
3088 height = XFASTINT (val); 3088 height = XFASTINT (val);
3089 else if (EQ (prop, Qtop)) 3089 else if (EQ (prop, Qtop))
3090 top = val; 3090 top = val;