From 215ce206838db63fdd310a0ababe421799011d21 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sat, 4 Nov 2017 18:43:03 -0400 Subject: fixes x64 warnings --- source/slang/vm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/vm.cpp') diff --git a/source/slang/vm.cpp b/source/slang/vm.cpp index 02f8e82fd..d795a841b 100644 --- a/source/slang/vm.cpp +++ b/source/slang/vm.cpp @@ -587,7 +587,7 @@ VMType loadVMType( VMTypeImpl* impl = (VMTypeImpl*) alloca(size); memset(impl, 0, size); impl->op = bcType->op; - impl->argCount = argCount; + impl->argCount = (uint32_t)argCount; VMVal* args = (VMVal*) (impl + 1); for(UInt aa = 0; aa < argCount; ++aa) @@ -732,7 +732,7 @@ void* findGlobalSymbolPtr( continue; if(strcmp(symbolName, name) == 0) - return getGlobalPtr(module, ss); + return getGlobalPtr(module, (uint32_t)ss); } return nullptr; -- cgit v1.2.3