From: Adam Dickmeiss Date: Thu, 14 Jan 2010 08:28:15 +0000 (+0100) Subject: Change type of idx=i to size_t X-Git-Tag: v4.0.0~51 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=f1717bac2bc62456bcd4fa5f727f9a74d12122d1;p=yaz-moved-to-github.git Change type of idx=i to size_t --- diff --git a/src/ber_int.c b/src/ber_int.c index f864cbe..d181671 100644 --- a/src/ber_int.c +++ b/src/ber_int.c @@ -62,7 +62,8 @@ int ber_encinteger(ODR o, Odr_int val) { unsigned long long uval = val; unsigned char tmp[sizeof(uval)]; - int i, len; + int len; + size_t i; for (i = sizeof(uval); i > 0; ) { tmp[--i] = uval; @@ -87,7 +88,8 @@ int ber_encinteger(ODR o, Odr_int val) int ber_decinteger(const unsigned char *buf, Odr_int *val, int max) { unsigned long long uval = 0; - int i, len; + int len; + size_t i; int res; const unsigned char *b = buf;