From: Michihiro NAKAJIMA Date: Mon, 21 Dec 2009 06:15:25 +0000 (-0500) Subject: Eliminate the warnings of the conversion of types on Visual Studio. X-Git-Tag: v2.8.0~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=996f201f46e6e0c6ec3ad19171c8b1bc6b30ec26;p=thirdparty%2Flibarchive.git Eliminate the warnings of the conversion of types on Visual Studio. SVN-Revision: 1770 --- diff --git a/cpio/cpio.c b/cpio/cpio.c index 6947bf60c..1a771c7a4 100644 --- a/cpio/cpio.c +++ b/cpio/cpio.c @@ -1252,7 +1252,7 @@ cpio_i64toa(int64_t n0) *--p = '\0'; do { - *--p = '0' + (n % 10); + *--p = '0' + (int)(n % 10); n /= 10; } while (n > 0); if (n0 < 0) diff --git a/tar/util.c b/tar/util.c index 23462bdf2..6a4b3f266 100644 --- a/tar/util.c +++ b/tar/util.c @@ -504,7 +504,7 @@ tar_i64toa(int64_t n0) *--p = '\0'; do { - *--p = '0' + (n % 10); + *--p = '0' + (int)(n % 10); n /= 10; } while (n > 0); if (n0 < 0)