Commit 629c715d authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(x_set_frame_parameters): Check number is positive before using XFASTINT.

parent 98a6dc9f
...@@ -3082,9 +3082,9 @@ x_set_frame_parameters (f, alist) ...@@ -3082,9 +3082,9 @@ x_set_frame_parameters (f, alist)
prop = parms[i]; prop = parms[i];
val = values[i]; val = values[i];
if (EQ (prop, Qwidth) && NUMBERP (val)) if (EQ (prop, Qwidth) && NATNUMP (val))
width = XFASTINT (val); width = XFASTINT (val);
else if (EQ (prop, Qheight) && NUMBERP (val)) else if (EQ (prop, Qheight) && NATNUMP (val))
height = XFASTINT (val); height = XFASTINT (val);
else if (EQ (prop, Qtop)) else if (EQ (prop, Qtop))
top = val; top = val;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment