From: Peter Collingbourne Date: Thu, 8 Sep 2016 01:45:28 +0000 (+0000) Subject: Add explicit casts to size_t to try to appease MSVC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59873511377c4601a828251d06ea80ec0eecfbfa;p=clang Add explicit casts to size_t to try to appease MSVC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280899 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/VTableBuilder.h b/include/clang/AST/VTableBuilder.h index 2ede868fc9..7b8fb04a76 100644 --- a/include/clang/AST/VTableBuilder.h +++ b/include/clang/AST/VTableBuilder.h @@ -243,11 +243,11 @@ public: ~VTableLayout(); ArrayRef vtable_components() const { - return {VTableComponents.get(), NumVTableComponents}; + return {VTableComponents.get(), size_t(NumVTableComponents)}; } ArrayRef vtable_thunks() const { - return {VTableThunks.get(), NumVTableThunks}; + return {VTableThunks.get(), size_t(NumVTableThunks)}; } uint64_t getAddressPoint(BaseSubobject Base) const {