diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-11-13 13:39:49 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-11-13 13:39:49 +0000 |
commit | 493456e793610e4a7ea267a3f70417984ce11a1f (patch) | |
tree | b0085734ef6cd85d790ed56d04af2bdc1f8a3e15 /llvm/unittests/Support/Path.cpp | |
parent | f8edc4a4b1b30b6324d88d11ffb7ba07eb460744 (diff) | |
download | llvm-493456e793610e4a7ea267a3f70417984ce11a1f.zip llvm-493456e793610e4a7ea267a3f70417984ce11a1f.tar.gz llvm-493456e793610e4a7ea267a3f70417984ce11a1f.tar.bz2 |
Fixing some sign comparison warnings from MSVC; NFC.
llvm-svn: 221887
Diffstat (limited to 'llvm/unittests/Support/Path.cpp')
-rw-r--r-- | llvm/unittests/Support/Path.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp index ffd8d0c..502cda2 100644 --- a/llvm/unittests/Support/Path.cpp +++ b/llvm/unittests/Support/Path.cpp @@ -425,7 +425,7 @@ TEST_F(FileSystemTest, CreateDir) { size_t TmpLen = TestDirectory.size(); const char *OneDir = "\\123456789"; size_t OneDirLen = strlen(OneDir); - ASSERT_LT(OneDirLen, 12); + ASSERT_LT(OneDirLen, 12U); size_t NLevels = ((248 - TmpLen) / OneDirLen) + 1; SmallString<260> LongDir(TestDirectory); for (size_t I = 0; I < NLevels; ++I) @@ -445,8 +445,8 @@ TEST_F(FileSystemTest, CreateDir) { // TestDirectory so that the one we create ends up in the right place. char PreviousDir[260]; size_t PreviousDirLen = ::GetCurrentDirectoryA(260, PreviousDir); - ASSERT_GT(PreviousDirLen, 0); - ASSERT_LT(PreviousDirLen, 260); + ASSERT_GT(PreviousDirLen, 0U); + ASSERT_LT(PreviousDirLen, 260U); ASSERT_NE(::SetCurrentDirectoryA(TestDirectory.c_str()), 0); LongDir.clear(); // Generate a relative directory name with absolute length > 248. |