diff src/glyphs-msw.c @ 647:b39c14581166

[xemacs-hg @ 2001-08-13 04:45:47 by ben] removal of unsigned, size_t, etc.
author ben
date Mon, 13 Aug 2001 04:46:48 +0000
parents 38db05db9cb5
children fdefd0186b75
line wrap: on
line diff
--- a/src/glyphs-msw.c	Wed Aug 08 12:15:04 2001 +0000
+++ b/src/glyphs-msw.c	Mon Aug 13 04:46:48 2001 +0000
@@ -853,7 +853,7 @@
       return 0;
     }
 
-  for (i=0; i<xpmimage.ncolors; i++)
+  for (i=0; i<(int)xpmimage.ncolors; i++)
     {
       /* goto alert!!!! */
       /* pick up symbolic colors in preference */
@@ -1217,7 +1217,7 @@
 				int dest_mask, Lisp_Object domain)
 {
   Lisp_Image_Instance *ii = XIMAGE_INSTANCE (image_instance);
-  unsigned int type = 0;
+  int type = 0;
   HANDLE himage = NULL;
   LPCTSTR resid=0;
   HINSTANCE hinst = NULL;
@@ -1378,7 +1378,7 @@
    black, 1 = white.  */
 static HBITMAP
 xbm_create_bitmap_from_data (HDC hdc, const UChar_Binary *data,
-			     unsigned int width, unsigned int height,
+			     int width, int height,
 			     int mask, COLORREF fg, COLORREF bg)
 {
   int old_width = (width + 7)/8;
@@ -2151,7 +2151,7 @@
   return 1;
 }
 
-static unsigned long
+static Hash_Code
 mswindows_image_instance_hash (Lisp_Image_Instance *p, int depth)
 {
   switch (IMAGE_INSTANCE_TYPE (p))
@@ -2159,7 +2159,7 @@
     case IMAGE_MONO_PIXMAP:
     case IMAGE_COLOR_PIXMAP:
     case IMAGE_POINTER:
-      return (unsigned long) IMAGE_INSTANCE_MSWINDOWS_BITMAP (p);
+      return (Hash_Code) IMAGE_INSTANCE_MSWINDOWS_BITMAP (p);
 
     default:
       return 0;