From 77e9f75f71bbfa170d0119f431f2a0dde2117c1e Mon Sep 17 00:00:00 2001 From: Atnanasi Date: Sat, 3 Sep 2016 11:07:43 +0900 Subject: [PATCH] =?UTF-8?q?=E5=9E=8B=E3=81=A7=E3=83=8F=E3=82=B2=E3=81=A6?= =?UTF-8?q?=E3=81=9F=E3=81=AE=E3=81=A7=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SMILEBASIC/compiler.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SMILEBASIC/compiler.d b/SMILEBASIC/compiler.d index b3f38f8..a377580 100644 --- a/SMILEBASIC/compiler.d +++ b/SMILEBASIC/compiler.d @@ -23,7 +23,8 @@ class DebugInfo { while (line.length < loc.line) { - line ~= location.length; + import std.conv : to; + line ~= location.length.to!int; } for(int i = 0; i < code.length - old; i++) { @@ -646,7 +647,7 @@ class Compiler } break; case NodeType.BinaryOperator: - { + { auto binop = cast(BinaryOperator)expr; compileExpression(binop.item2, sc); if(binop.operator == TokenType.LBracket)