mirror of https://github.com/buggins/dlangui.git
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:
parent
cc0f09a4c4
commit
e9473480bb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue