summaryrefslogtreecommitdiffstats
path: root/source/slang/vm.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-11-04 18:43:03 -0400
committerYong He <yonghe@outlook.com>2017-11-04 18:43:03 -0400
commit215ce206838db63fdd310a0ababe421799011d21 (patch)
treedb190abec3cd8c814a59a6f4905adcaf89bbe058 /source/slang/vm.cpp
parent784bd914cface6e5837ef0da7aee0df2e16c4999 (diff)
fixes x64 warnings
Diffstat (limited to 'source/slang/vm.cpp')
-rw-r--r--source/slang/vm.cpp4
1 files changed, 2 insertions, 2 deletions
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;