From e9473480bb0506c7263715cd854704a040a4198c Mon Sep 17 00:00:00 2001 From: alphaKAI Date: Fri, 3 Apr 2015 15:47:46 +0900 Subject: [PATCH] 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; --- src/dlangui/core/parser.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dlangui/core/parser.d b/src/dlangui/core/parser.d index 803c3137..a53316ba 100644 --- a/src/dlangui/core/parser.d +++ b/src/dlangui/core/parser.d @@ -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;