diff options
| author | Yong He <yonghe@outlook.com> | 2017-11-04 18:07:09 -0400 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2017-11-04 18:07:09 -0400 |
| commit | d1009d1a5ac7463dc74169ed7c6e1e692b3541d7 (patch) | |
| tree | b21cd74ca6daabd655f5a2625c2698de16a92dd1 /source/slang/mangle.cpp | |
| parent | 1f9686ce87573efdd4ad56040deb2d424fe51929 (diff) | |
| parent | 784bd914cface6e5837ef0da7aee0df2e16c4999 (diff) | |
merge with fixWarnings branch
Diffstat (limited to 'source/slang/mangle.cpp')
| -rw-r--r-- | source/slang/mangle.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/mangle.cpp b/source/slang/mangle.cpp index 69f1f0b75..b9fba6380 100644 --- a/source/slang/mangle.cpp +++ b/source/slang/mangle.cpp @@ -58,10 +58,10 @@ namespace Slang { if( auto constVal = dynamic_cast<ConstantIntVal*>(val) ) { - auto val = constVal->value; - if( val >= 0 && val <= 9 ) + auto cVal = constVal->value; + if(cVal >= 0 && cVal <= 9 ) { - emit(context, (UInt) val); + emit(context, (UInt)cVal); return; } } |
