Fix MSVC "signed/unsigned mismatch" warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 10 Jul 2018 09:46:57 +0000 (09:46 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 10 Jul 2018 09:46:57 +0000 (09:46 +0000)
llvm-svn: 336649

llvm/include/llvm/ADT/FunctionExtras.h

index a8c7bc4..2b75dc6 100644 (file)
@@ -44,7 +44,7 @@ template <typename FunctionT> class unique_function;
 
 template <typename ReturnT, typename... ParamTs>
 class unique_function<ReturnT(ParamTs...)> {
-  static constexpr int InlineStorageSize = sizeof(void *) * 3;
+  static constexpr size_t InlineStorageSize = sizeof(void *) * 3;
 
   // MSVC has a bug and ICEs if we give it a particular dependent value
   // expression as part of the `std::conditional` below. To work around this,