[llvm-branch-commits] [libcxx] 8db009d - [libc++] Fix gcc warning -Wsign-compare.
Marek Kurdej via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Nov 26 01:24:18 PST 2020
Author: Marek Kurdej
Date: 2020-11-26T10:20:09+01:00
New Revision: 8db009d273676ef4c20254b75f8f8b54dca44d38
URL: https://github.com/llvm/llvm-project/commit/8db009d273676ef4c20254b75f8f8b54dca44d38
DIFF: https://github.com/llvm/llvm-project/commit/8db009d273676ef4c20254b75f8f8b54dca44d38.diff
LOG: [libc++] Fix gcc warning -Wsign-compare.
Added:
Modified:
libcxx/test/support/filesystem_test_helper.h
Removed:
################################################################################
diff --git a/libcxx/test/support/filesystem_test_helper.h b/libcxx/test/support/filesystem_test_helper.h
index ad7ade3a1a58..81366580db89 100644
--- a/libcxx/test/support/filesystem_test_helper.h
+++ b/libcxx/test/support/filesystem_test_helper.h
@@ -185,7 +185,7 @@ struct scoped_test_env
filename = sanitize_path(std::move(filename));
if (size >
- static_cast<typename std::make_signed<large_file_offset_t>::type>(
+ static_cast<typename std::make_unsigned<large_file_offset_t>::type>(
std::numeric_limits<large_file_offset_t>::max())) {
fprintf(stderr, "create_file(%s, %ju) too large\n",
filename.c_str(), size);
More information about the llvm-branch-commits
mailing list