From 6f5cc33f6de1e2bf7dbee5e205ff5c53b47eea0e Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Sun, 4 Oct 2020 18:17:43 +0300 Subject: Fix builds for Win32 --- JSImpl/src/ByteCodeGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'JSImpl/src') 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; -- cgit v1.3.1-23-gd82d