Commit 3a28db80 authored by Dave Love's avatar Dave Love

(tty_defined_color): Declare color_idx unsigned long.

parent 8a44227a
No preview for this file type
......@@ -1085,7 +1085,8 @@ tty_defined_color (f, color_name, color_def, alloc)
int alloc;
{
Lisp_Object color_desc;
int color_idx = FACE_TTY_DEFAULT_COLOR, red = 0, green = 0, blue = 0;
unsigned long color_idx = FACE_TTY_DEFAULT_COLOR,
red = 0, green = 0, blue = 0;
int status = 1;
if (*color_name && !NILP (Ffboundp (Qtty_color_desc)))
......@@ -1121,7 +1122,7 @@ tty_defined_color (f, color_name, color_def, alloc)
color_idx = FACE_TTY_DEFAULT_BG_COLOR;
}
color_def->pixel = (unsigned long) color_idx;
color_def->pixel = color_idx;
color_def->red = red;
color_def->green = green;
color_def->blue = blue;
......
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