Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / ByteCodeGenerator.cpp
diff options
context:
space:
mode:
Commit6f5cc33f6de1e2bf7dbee5e205ff5c53b47eea0e (patch)
Author
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-10-04 18:17:43 +0300
Committer
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-10-05 22:14:15 +0300
Files3b022445897fc6278e0e011dbc18b9b04020103c /JSImpl/src/ByteCodeGenerator.cpp
IPL-6f5cc33f6de1e2bf7dbee5e205ff5c53b47eea0e.tar
IPL-6f5cc33f6de1e2bf7dbee5e205ff5c53b47eea0e.tar.gz
IPL-6f5cc33f6de1e2bf7dbee5e205ff5c53b47eea0e.zip
Parent9b55f36bef0e02b31758f552d0597777fe15a181 (diff)
Fix builds for Win32
1 files changed, 2 insertions, 2 deletions
-rw-r--r--JSImpl/src/ByteCodeGenerator.cpp4
diff --git a/JSImpl/src/ByteCodeGenerator.cpp b/JSImpl/src/ByteCodeGenerator.cpp
index 39f3bff..49e734b 100644
--- a/JSImpl/src/ByteCodeGenerator.cpp
+++ b/JSImpl/src/ByteCodeGenerator.cpp
@@ -646,8 +646,8 @@ IPLString ByteCodeGenerator::GetCode()
break;
case ByteCodeGenerator::Instruction::DEBUG:
{
- auto line = i.Values.Int[0];
- auto column = i.Values.Int[1];
+ auto line = int(i.Values.Int[0]);
+ auto column = int(i.Values.Int[1]);
result += "D: " + m_Source[line].substr(0, column) + "@@=>" + m_Source[line].substr(column, m_Source[line].size()) + '\n';
}
break;