summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-07-07 08:12:50 -0700
committerTim Foley <tfoley@nvidia.com>2017-07-07 08:12:50 -0700
commit32deeefa1d4e2c1772382a115def72b2305d869b (patch)
treeeded696fa0a043f0a0aba0796a23f91aaecc1230
parentaf8c0eae90c76d2c8f745badf6f743cefe15f777 (diff)
Fix signed/unsigned comparison warning.
-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]);