summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/slang/emit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp
index 79a8277bf..08d2218dc 100644
--- a/source/slang/emit.cpp
+++ b/source/slang/emit.cpp
@@ -755,7 +755,7 @@ static void emitCallExpr(
char d = *cursor++;
assert(('0' <= d) && (d <= '9'));
- int argIndex = d - '0';
+ UInt argIndex = d - '0';
assert((0 <= argIndex) && (argIndex < argCount));
Emit(context, "(");
EmitExpr(context, callExpr->Arguments[argIndex]);