diff options
author | josh.macdonald <jmacd@users.noreply.github.com> | 2007-12-14 11:19:18 +0000 |
---|---|---|
committer | josh.macdonald <jmacd@users.noreply.github.com> | 2007-12-14 11:19:18 +0000 |
commit | a80f2ee447ecc9c22f8e2ea8ce9651fc23a1bac2 (patch) | |
tree | 6315a98b5ae1c2c3b9df44db39cdd9a5ff63cda4 /xdelta3 | |
parent | 600bf55006a53294e4cc74740442bd053ca1f05c (diff) |
Fix a few more uint uses.
Diffstat (limited to 'xdelta3')
-rw-r--r-- | xdelta3/xdelta3-hash.h | 2 | ||||
-rw-r--r-- | xdelta3/xdelta3.c | 4 |
2 files changed, 3 insertions, 3 deletions
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 @@ | |||
43 | #if HASH_PERMUTE == 0 | 43 | #if HASH_PERMUTE == 0 |
44 | #define PERMUTE(x) (x) | 44 | #define PERMUTE(x) (x) |
45 | #else | 45 | #else |
46 | #define PERMUTE(x) (__single_hash[(uint)x]) | 46 | #define PERMUTE(x) (__single_hash[(uint32_t)x]) |
47 | 47 | ||
48 | static const uint16_t __single_hash[256] = | 48 | static const uint16_t __single_hash[256] = |
49 | { | 49 | { |
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, | |||
1837 | #define IF_SIZEOF64(x) if (num < (1ULL << (7 * (x)))) return (x); | 1837 | #define IF_SIZEOF64(x) if (num < (1ULL << (7 * (x)))) return (x); |
1838 | 1838 | ||
1839 | #if USE_UINT32 | 1839 | #if USE_UINT32 |
1840 | static inline uint | 1840 | static inline uint32_t |
1841 | xd3_sizeof_uint32_t (uint32_t num) | 1841 | xd3_sizeof_uint32_t (uint32_t num) |
1842 | { | 1842 | { |
1843 | IF_SIZEOF32(1); | 1843 | IF_SIZEOF32(1); |
@@ -1881,7 +1881,7 @@ xd3_read_uint64_t (xd3_stream *stream, const uint8_t **inpp, | |||
1881 | const uint8_t *max, uint64_t *valp) | 1881 | const uint8_t *max, uint64_t *valp) |
1882 | { READ_INTEGER_TYPE (uint64_t, UINT64_OFLOW_MASK); } | 1882 | { READ_INTEGER_TYPE (uint64_t, UINT64_OFLOW_MASK); } |
1883 | 1883 | ||
1884 | static uint | 1884 | static uint32_t |
1885 | xd3_sizeof_uint64_t (uint64_t num) | 1885 | xd3_sizeof_uint64_t (uint64_t num) |
1886 | { | 1886 | { |
1887 | IF_SIZEOF64(1); | 1887 | IF_SIZEOF64(1); |