[clang-tools-extra] r328108 - [Fix] fix type deduction on ARM and MSVC
Jonas Toth via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 21 08:50:16 PDT 2018
Author: jonastoth
Date: Wed Mar 21 08:50:15 2018
New Revision: 328108
URL: http://llvm.org/viewvc/llvm-project?rev=328108&view=rev
Log:
[Fix] fix type deduction on ARM and MSVC
Modified:
clang-tools-extra/trunk/clang-tidy/hicpp/MultiwayPathsCoveredCheck.cpp
Modified: clang-tools-extra/trunk/clang-tidy/hicpp/MultiwayPathsCoveredCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/hicpp/MultiwayPathsCoveredCheck.cpp?rev=328108&r1=328107&r2=328108&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/hicpp/MultiwayPathsCoveredCheck.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/hicpp/MultiwayPathsCoveredCheck.cpp Wed Mar 21 08:50:15 2018
@@ -167,7 +167,7 @@ void MultiwayPathsCoveredCheck::handleSw
return twoPow(BitfieldDecl->getBitWidthValue(*Result.Context));
}
- return 0ul;
+ return static_cast<std::size_t>(0);
}();
// FIXME: Transform the 'switch' into an 'if' for CaseCount == 1.
More information about the cfe-commits
mailing list