From: Michihiro NAKAJIMA Date: Mon, 13 Oct 2014 14:30:23 +0000 (+0900) Subject: Fix build failure with gcc. X-Git-Tag: v3.1.900a~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6203b0e67ba448713e2763a43f0a10ec1284f5c5;p=thirdparty%2Flibarchive.git Fix build failure with gcc. --- diff --git a/libarchive/archive_write_set_format_warc.c b/libarchive/archive_write_set_format_warc.c index 9623d717f..c4416ec1c 100644 --- a/libarchive/archive_write_set_format_warc.c +++ b/libarchive/archive_write_set_format_warc.c @@ -421,7 +421,7 @@ _popul_ehdr(struct archive_string *tgt, size_t tsz, warc_essential_hdr_t hdr) /**/ archive_strncat(tgt, "\r\n", 2); - return (archive_strlen(tgt) >= tsz)? -1: archive_strlen(tgt); + return (archive_strlen(tgt) >= tsz)? -1: (ssize_t)archive_strlen(tgt); } static int