]> granicus.if.org Git - clang/commitdiff
Add explicit casts to size_t to try to appease MSVC.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 8 Sep 2016 01:45:28 +0000 (01:45 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 8 Sep 2016 01:45:28 +0000 (01:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280899 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/VTableBuilder.h

index 2ede868fc9babd123ebc53e93663b4f5a10283ea..7b8fb04a7650c938de4613b6cdf2a2cde27c76c1 100644 (file)
@@ -243,11 +243,11 @@ public:
   ~VTableLayout();
 
   ArrayRef<VTableComponent> vtable_components() const {
-    return {VTableComponents.get(), NumVTableComponents};
+    return {VTableComponents.get(), size_t(NumVTableComponents)};
   }
 
   ArrayRef<VTableThunkTy> vtable_thunks() const {
-    return {VTableThunks.get(), NumVTableThunks};
+    return {VTableThunks.get(), size_t(NumVTableThunks)};
   }
 
   uint64_t getAddressPoint(BaseSubobject Base) const {