From 3a28db80b0af5cd6ab1d083427e205581bb00cb1 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Mon, 14 Feb 2000 18:05:57 +0000 Subject: [PATCH] (tty_defined_color): Declare color_idx unsigned long. --- src/ChangeLog | 4 ++++ src/xfaces.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 3b28faa0750..8ea781c54c1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2000-02-14 Dave Love + + * xfaces.c (tty_defined_color): Declare color_idx unsigned long. + 2000-02-14 Stefan Monnier * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS diff --git a/src/xfaces.c b/src/xfaces.c index c4d7923d26e..30f122d8651 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -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; -- 2.39.5