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’.
This commit is contained in:
Thien-Thi Nguyen 2017-03-17 10:16:44 +01:00 committed by Thien-Thi Nguyen
parent a09473261c
commit 129d30e980

View file

@ -4001,7 +4001,7 @@ x_set_alpha (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
else if (INTEGERP (item)) else if (INTEGERP (item))
{ {
EMACS_INT ialpha = XINT (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)); args_out_of_range (make_number (0), make_number (100));
alpha = ialpha / 100.0; alpha = ialpha / 100.0;
} }