1
0

Merge pull request #9 from Tosuke/master

型でハゲてたので修正
This commit is contained in:
otya
2016-09-03 11:48:44 +09:00
committed by GitHub

View File

@@ -23,7 +23,8 @@ class DebugInfo
{ {
while (line.length < loc.line) 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++) for(int i = 0; i < code.length - old; i++)
{ {
@@ -646,7 +647,7 @@ class Compiler
} }
break; break;
case NodeType.BinaryOperator: case NodeType.BinaryOperator:
{ {
auto binop = cast(BinaryOperator)expr; auto binop = cast(BinaryOperator)expr;
compileExpression(binop.item2, sc); compileExpression(binop.item2, sc);
if(binop.operator == TokenType.LBracket) if(binop.operator == TokenType.LBracket)