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:
parent
a09473261c
commit
129d30e980
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue