summaryrefslogtreecommitdiff
path: root/xdelta3
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3')
-rw-r--r--xdelta3/xdelta3-hash.h2
-rw-r--r--xdelta3/xdelta3.c4
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
48static const uint16_t __single_hash[256] = 48static 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
1840static inline uint 1840static inline uint32_t
1841xd3_sizeof_uint32_t (uint32_t num) 1841xd3_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
1884static uint 1884static uint32_t
1885xd3_sizeof_uint64_t (uint64_t num) 1885xd3_sizeof_uint64_t (uint64_t num)
1886{ 1886{
1887 IF_SIZEOF64(1); 1887 IF_SIZEOF64(1);