summaryrefslogtreecommitdiffstats
path: root/source/slang/bytecode.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/bytecode.h')
-rw-r--r--source/slang/bytecode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/bytecode.h b/source/slang/bytecode.h
index 75b9f15cd..f1ad52c32 100644
--- a/source/slang/bytecode.h
+++ b/source/slang/bytecode.h
@@ -56,7 +56,7 @@ struct BCPtr
{
if (ptr)
{
- rawVal = (char*)ptr - (char*)this;
+ rawVal = (RawVal)((char*)ptr - (char*)this);
}
else
{