From f1717bac2bc62456bcd4fa5f727f9a74d12122d1 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 14 Jan 2010 09:28:15 +0100 Subject: [PATCH] Change type of idx=i to size_t --- src/ber_int.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 1.7.10.4