Commit 40c03e12 authored by Karl Heuer's avatar Karl Heuer

(CHECK_NATNUM): Use NATNUMP instead of its expansion.

parent 8ce069f5
......@@ -717,9 +717,8 @@ x_set_frame_parameters (f, alist)
param_index = Fget (prop, Qx_frame_parameter);
old_value = get_frame_param (f, prop);
store_frame_param (f, prop, val);
if (INTEGERP (param_index)
&& XINT (param_index) >= 0
&& (XINT (param_index)
if (NATNUMP (param_index)
&& (XFASTINT (param_index)
< sizeof (x_frame_parms)/sizeof (x_frame_parms[0])))
(*x_frame_parms[XINT (param_index)].setter)(f, val, old_value);
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