Commit 129d30e9 authored by Thien-Thi Nguyen's avatar Thien-Thi Nguyen Committed by Thien-Thi Nguyen

Fix bug: Range-check integer ‘alpha’ frame parm value

Typo introduced 2013-04-01, "Prefer < to >
in range checks such as 0 <= i && i < N".

* src/frame.c (x_set_alpha): Use ‘ialpha’, not ‘alpha’.
parent a0947326
......@@ -4001,7 +4001,7 @@ x_set_alpha (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
else if (INTEGERP (item))
{
EMACS_INT ialpha = XINT (item);
if (! (0 <= ialpha && alpha <= 100))
if (! (0 <= ialpha && ialpha <= 100))
args_out_of_range (make_number (0), make_number (100));
alpha = ialpha / 100.0;
}
......
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