projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2147547
)
Change type of idx=i to size_t
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 14 Jan 2010 08:28:15 +0000
(09:28 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 14 Jan 2010 08:28:15 +0000
(09:28 +0100)
src/ber_int.c
patch
|
blob
|
history
diff --git
a/src/ber_int.c
b/src/ber_int.c
index
f864cbe
..
d181671
100644
(file)
--- 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;