Bitmap offsets and counts are always positive.
authorAndrew Bartlett <abartlet@samba.org>
Sat, 1 Feb 2003 06:30:12 +0000 (06:30 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 1 Feb 2003 06:30:12 +0000 (06:30 +0000)
source/include/smb.h
source/lib/bitmap.c

index 8138555539a3315082081988b180b87b2b53b3cb..279b79eace3f9c466222b6e94032550f03610b7d 100644 (file)
@@ -807,7 +807,7 @@ struct parm_struct
 
 struct bitmap {
        uint32 *b;
-       int n;
+       unsigned int n;
 };
 
 #define FLAG_BASIC     0x0001 /* fundamental options */
index 26d21d085f685111ed804cc6c3deb6852f4b8139..1023dd6541d8ea0f0a7be70d4c1dfce9e17e0474 100644 (file)
@@ -129,7 +129,7 @@ wraparound
 ****************************************************************************/
 int bitmap_find(struct bitmap *bm, unsigned ofs)
 {
-       int i, j;
+       unsigned int i, j;
 
        if (ofs > bm->n) ofs = 0;