summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-01 06:30:12 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-01 06:30:12 +0000
commit7c1698d3029538dbd53b4e605392bf42e8cb2909 (patch)
tree4bd814440fdd12871cae61b9bab3149dc3457159 /source3/lib
parente0adea449aeb9432572ea0d8af014dcc2d0c4cf1 (diff)
downloadsamba-7c1698d3029538dbd53b4e605392bf42e8cb2909.tar.gz
samba-7c1698d3029538dbd53b4e605392bf42e8cb2909.tar.bz2
samba-7c1698d3029538dbd53b4e605392bf42e8cb2909.zip
Bitmap offsets and counts are always positive.
(This used to be commit 8f495e8634a1777c4b03d3ec07c76f905ff2fb98)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/bitmap.c b/source3/lib/bitmap.c
index 26d21d085f..1023dd6541 100644
--- a/source3/lib/bitmap.c
+++ b/source3/lib/bitmap.c
@@ -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;