]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix remaining build failure on FreeBSD Current.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 9 Feb 2012 20:11:24 +0000 (05:11 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 9 Feb 2012 20:11:24 +0000 (05:11 +0900)
libarchive/archive_string.c

index 1dce5600e44bd5852aa87e9548016f38522f07d7..bd4bd1abbd9df93519db5b2785562c3c1007abca 100644 (file)
@@ -849,7 +849,7 @@ archive_string_append_from_wcs(struct archive_string *as,
                        }
                }
                as->length += r;
-               if (wp == NULL || (wp - wpp) >= nwc)
+               if (wp == NULL || (wp - wpp) >= (int64_t)nwc)
                        break;
                /* Get a remaining WCS lenth. */
                nwc -= wp - wpp;