From bf0c8992055b4e66488a2b8de56c353c573268ac Mon Sep 17 00:00:00 2001 From: Josh MacDonald Date: Sat, 18 Oct 2014 23:24:50 -0700 Subject: Some -Wconversion cleanups --- xdelta3/xdelta3-internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xdelta3/xdelta3-internal.h') diff --git a/xdelta3/xdelta3-internal.h b/xdelta3/xdelta3-internal.h index 35de56b..b586e06 100644 --- a/xdelta3/xdelta3-internal.h +++ b/xdelta3/xdelta3-internal.h @@ -47,7 +47,7 @@ uint32_t xd3_large_cksum_update (uint32_t cksum, const uint8_t *base, usize_t look); int xd3_encode_init_full (xd3_stream *stream); -size_t xd3_pow2_roundup (size_t x); +usize_t xd3_pow2_roundup (usize_t x); int xd3_process_stream (int is_encode, xd3_stream *stream, int (*func) (xd3_stream *), @@ -136,7 +136,7 @@ typedef struct { #endif /* Underlying xprintf() */ -int xsnprintf_func (char *str, int n, const char *fmt, ...) +int xsnprintf_func (char *str, size_t n, const char *fmt, ...) PRINTF_ATTRIBUTE(3,4); /* XPR(NT "", ...) (used by main) prefixes an "xdelta3: " to the output. */ -- cgit v1.2.3