diff options
| author | Yong He <yonghe@outlook.com> | 2017-11-04 15:20:21 -0400 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2017-11-04 15:20:21 -0400 |
| commit | 31e7f84484d227206f3bbb33a8b9be8a9acecfe5 (patch) | |
| tree | eb06912348d3fd39a671308d80db999d144ae024 /source/slang/emit.cpp | |
| parent | d803bf74eee7842ce8a358e145b2546c03308dfc (diff) | |
Passing both assoctype-simple and assoctype-complex test cases.
Diffstat (limited to 'source/slang/emit.cpp')
| -rw-r--r-- | source/slang/emit.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp index 54788e33a..ccf7f94c0 100644 --- a/source/slang/emit.cpp +++ b/source/slang/emit.cpp @@ -395,8 +395,7 @@ struct EmitVisitor void emitRawTextSpan(char const* textBegin, char const* textEnd) { // TODO(tfoley): Need to make "corelib" not use `int` for pointer-sized things... - auto len = int(textEnd - textBegin); - + auto len = textEnd - textBegin; context->shared->sb.Append(textBegin, len); } |
