llvm.org GIT mirror llvm / 5f34bd9
Fixing some sign comparison warnings from MSVC; NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221887 91177308-0d34-0410-b5e6-96231b3b80d8 Aaron Ballman 4 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
424424 size_t TmpLen = TestDirectory.size();
425425 const char *OneDir = "\\123456789";
426426 size_t OneDirLen = strlen(OneDir);
427 ASSERT_LT(OneDirLen, 12);
427 ASSERT_LT(OneDirLen, 12U);
428428 size_t NLevels = ((248 - TmpLen) / OneDirLen) + 1;
429429 SmallString<260> LongDir(TestDirectory);
430430 for (size_t I = 0; I < NLevels; ++I)
444444 // TestDirectory so that the one we create ends up in the right place.
445445 char PreviousDir[260];
446446 size_t PreviousDirLen = ::GetCurrentDirectoryA(260, PreviousDir);
447 ASSERT_GT(PreviousDirLen, 0);
448 ASSERT_LT(PreviousDirLen, 260);
447 ASSERT_GT(PreviousDirLen, 0U);
448 ASSERT_LT(PreviousDirLen, 260U);
449449 ASSERT_NE(::SetCurrentDirectoryA(TestDirectory.c_str()), 0);
450450 LongDir.clear();
451451 // Generate a relative directory name with absolute length > 248.