From a80f2ee447ecc9c22f8e2ea8ce9651fc23a1bac2 Mon Sep 17 00:00:00 2001 From: "josh.macdonald" Date: Fri, 14 Dec 2007 11:19:18 +0000 Subject: Fix a few more uint uses. --- xdelta3/xdelta3-hash.h | 2 +- xdelta3/xdelta3.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'xdelta3') diff --git a/xdelta3/xdelta3-hash.h b/xdelta3/xdelta3-hash.h index c0e8898..cace3b5 100644 --- a/xdelta3/xdelta3-hash.h +++ b/xdelta3/xdelta3-hash.h @@ -43,7 +43,7 @@ #if HASH_PERMUTE == 0 #define PERMUTE(x) (x) #else -#define PERMUTE(x) (__single_hash[(uint)x]) +#define PERMUTE(x) (__single_hash[(uint32_t)x]) static const uint16_t __single_hash[256] = { diff --git a/xdelta3/xdelta3.c b/xdelta3/xdelta3.c index 44c00a5..bfeea94 100644 --- a/xdelta3/xdelta3.c +++ b/xdelta3/xdelta3.c @@ -1837,7 +1837,7 @@ xd3_emit_bytes (xd3_stream *stream, #define IF_SIZEOF64(x) if (num < (1ULL << (7 * (x)))) return (x); #if USE_UINT32 -static inline uint +static inline uint32_t xd3_sizeof_uint32_t (uint32_t num) { IF_SIZEOF32(1); @@ -1881,7 +1881,7 @@ xd3_read_uint64_t (xd3_stream *stream, const uint8_t **inpp, const uint8_t *max, uint64_t *valp) { READ_INTEGER_TYPE (uint64_t, UINT64_OFLOW_MASK); } -static uint +static uint32_t xd3_sizeof_uint64_t (uint64_t num) { IF_SIZEOF64(1); -- cgit v1.2.3