changeset 27695:68feb13f9572

(tty_defined_color): Declare color_idx unsigned long.
author Dave Love <fx@gnu.org>
date Mon, 14 Feb 2000 18:02:46 +0000
parents 5c14849aee4c
children 87ca2bc3b05a
files src/xfaces.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Mon Feb 14 17:04:17 2000 +0000
+++ b/src/xfaces.c	Mon Feb 14 18:02:46 2000 +0000
@@ -1085,7 +1085,8 @@
      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 @@
 	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;