ICCVID: signed-compare fixes

Mike McCormack mike at codeweavers.com
Wed Aug 25 01:34:06 CDT 2004


ChangeLog:
* signed-compare fixes
-------------- next part --------------
Index: dlls/iccvid/iccvid.c
===================================================================
RCS file: /home/wine/wine/dlls/iccvid/iccvid.c,v
retrieving revision 1.5
diff -u -r1.5 iccvid.c
--- dlls/iccvid/iccvid.c	14 Jun 2004 16:56:58 -0000	1.5
+++ dlls/iccvid/iccvid.c	25 Aug 2004 05:08:18 -0000
@@ -70,7 +70,7 @@
 typedef struct {
     cvid_codebook *v4_codebook[MAX_STRIPS];
     cvid_codebook *v1_codebook[MAX_STRIPS];
-    int strip_num;
+    unsigned int strip_num;
 } cinepak_info;
 
 typedef struct _ICCVID_Info
@@ -353,7 +353,7 @@
 
 void free_cvinfo( cinepak_info *cvinfo )
 {
-    int i;
+    unsigned int i;
 
     for( i=0; i<cvinfo->strip_num; i++ )
     {
@@ -382,14 +382,15 @@
  *   frame (only 24 or 32 bpp are supported)
  */
 void decode_cinepak(cinepak_info *cvinfo, unsigned char *buf, int size,
-           unsigned char *frame, int width, int height, int bit_per_pixel)
+           unsigned char *frame, unsigned int width, unsigned int height, int bit_per_pixel)
 {
     cvid_codebook *v4_codebook, *v1_codebook, *codebook = NULL;
     unsigned long x, y, y_bottom, frame_flags, strips, cv_width, cv_height,
                   cnum, strip_id, chunk_id, x0, y0, x1, y1, ci, flag, mask;
     long len, top_size, chunk_size;
     unsigned char *frm_ptr, *frm_end;
-    int i, cur_strip, d0, d1, d2, d3, frm_stride, bpp = 3;
+    unsigned int i, cur_strip;
+    int d0, d1, d2, d3, frm_stride, bpp = 3;
     fn_cvid_v1 cvid_v1 = cvid_v1_24;
     fn_cvid_v4 cvid_v4 = cvid_v4_24;
 


More information about the wine-patches mailing list