1
0

16,2進数リテラルでマイナスになる数を記述した場合エラーが出ていたので修正

This commit is contained in:
otya128
2016-08-31 17:08:15 +09:00
parent 9b0d7c0a8c
commit 2228598e05

View File

@@ -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;
} }