fix implicit convert at src/dlangui/core/parser.d

Erros:
src/dlangui/core/parser.d(162): Error: cannot implicitly convert expression (this._lineText.length) of type ulong to int
src/dlangui/core/parser.d(196): Error: cannot implicitly convert expression (this._lineText.length) of type ulong to int

Original Code(both of these lines):
_len = _lineText.length;
Fixed Core(both of these lines):
_len = cast(int)_lineText.length;
This commit is contained in:
alphaKAI 2015-04-03 15:47:46 +09:00
parent cc0f09a4c4
commit e9473480bb
1 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ class Tokenizer {
_filename = filename;
_lines = LineStream.create(source, filename);
_lineText = _lines.readLine();
_len = _lineText.length;
_len = cast(int)_lineText.length;
_line = 0;
_pos = 0;
_prevChar = 0;
@ -193,7 +193,7 @@ class Tokenizer {
_prevChar = EOF_CHAR;
else {
_lineText = _lines.readLine();
_len = _lineText.length;
_len = cast(int)_lineText.length;
_line++;
_pos = 0;
_prevChar = EOL_CHAR;