diff options
author | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-11-26 10:53:47 +0100 |
---|---|---|
committer | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-11-26 10:53:47 +0100 |
commit | 95c55a1af9fa4be56737eefa0e709ce5abe47deb (patch) | |
tree | 8fc93b2f8ab6b29d339de98800a4670cb72ad92c /rpmio/rpmpgp.h | |
parent | 96e7f513cde29bbcec1d21f62d23b74cd1b26ed7 (diff) | |
download | rpm-95c55a1af9fa4be56737eefa0e709ce5abe47deb.tar.gz rpm-95c55a1af9fa4be56737eefa0e709ce5abe47deb.tar.bz2 rpm-95c55a1af9fa4be56737eefa0e709ce5abe47deb.zip |
Type pedantery.
Diffstat (limited to 'rpmio/rpmpgp.h')
-rw-r--r-- | rpmio/rpmpgp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmio/rpmpgp.h b/rpmio/rpmpgp.h index 84b0198f2..1d6f515c4 100644 --- a/rpmio/rpmpgp.h +++ b/rpmio/rpmpgp.h @@ -971,10 +971,10 @@ typedef enum rpmDigestFlags_e { * @return native-endian integer */ static inline -unsigned int pgpGrab(const uint8_t *s, int nbytes) +unsigned int pgpGrab(const uint8_t *s, size_t nbytes) { unsigned int i = 0; - int nb = (nbytes <= sizeof(i) ? nbytes : sizeof(i)); + size_t nb = (nbytes <= sizeof(i) ? nbytes : sizeof(i)); while (nb--) i = (i << 8) | *s++; return i; |