]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Eliminate the warnings of the conversion of types on Visual Studio.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 21 Dec 2009 06:15:25 +0000 (01:15 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 21 Dec 2009 06:15:25 +0000 (01:15 -0500)
SVN-Revision: 1770

cpio/cpio.c
tar/util.c

index 6947bf60c0013fa043350cd1f5adf8158d4ad744..1a771c7a47cc203fc1f7bdb5bd208a1c3f8ea228 100644 (file)
@@ -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)
index 23462bdf2e7d13503fdc5968502abd2d437d8be6..6a4b3f26640218648eac3ef6463a9ffd549d6716 100644 (file)
@@ -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)