16,2進数リテラルでマイナスになる数を記述した場合エラーが出ていたので修正
This commit is contained in:
@@ -279,7 +279,7 @@ class Lexical
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
wstring numstr = code[start..i];
|
wstring numstr = code[start..i];
|
||||||
int num = numstr.to!int(16);
|
int num = numstr.to!uint(16);
|
||||||
token = Token(TokenType.Integer, Value(num));
|
token = Token(TokenType.Integer, Value(num));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -296,7 +296,7 @@ class Lexical
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
wstring numstr = code[start..i];
|
wstring numstr = code[start..i];
|
||||||
int num = numstr.to!int(2);
|
int num = numstr.to!uint(2);
|
||||||
token = Token(TokenType.Integer, Value(num));
|
token = Token(TokenType.Integer, Value(num));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user