X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fber_int.c;h=ca3ea1098bdb47c17f0917a9a49d66a6937c1af4;hp=f864cbe877ea08806f15157e527e6877819eee75;hb=88d3bedf772316f87e1996f655ccf8d1e2589755;hpb=b97d1c530d7e111f3a4f9cfbb14220cc64561753 diff --git a/src/ber_int.c b/src/ber_int.c index f864cbe..ca3ea10 100644 --- a/src/ber_int.c +++ b/src/ber_int.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ @@ -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;