diff src/xfaces.c @ 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 0ade9883b546
children 2e020ab026b8
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;