Fix a warning in fish_tests

This commit is contained in:
ridiculousfish 2020-07-29 20:12:19 -07:00
parent 2809d637db
commit f7f35d2373

View file

@ -5053,7 +5053,7 @@ static void test_wwrite_to_fd() {
}
std::string narrow = wcs2string(input);
size_t expected_size = narrow.size();
do_test(amt == expected_size);
do_test(static_cast<size_t>(amt) == expected_size);
if (lseek(fd.fd(), 0, SEEK_SET) < 0) {
wperror(L"seek");