From bf99a4ed95a53d2dade3a95c6a26e733d7cafe32 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Thu, 22 Jan 2015 16:26:16 +0300 Subject: [PATCH] fix x64 builds --- src/ddc/lexer/tokenizer.d | 2 +- src/dlangide/ui/dsourceedit.d | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ddc/lexer/tokenizer.d b/src/ddc/lexer/tokenizer.d index 44adf72..60d738f 100644 --- a/src/ddc/lexer/tokenizer.d +++ b/src/ddc/lexer/tokenizer.d @@ -1439,7 +1439,7 @@ class Tokenizer // fetch next line from source stream protected bool nextLine() { - _prevLineLength = _lineText.length; + _prevLineLength = cast(int)_lineText.length; _lineText = _lineStream.readLine(); if (!_lineText) { if (_lineStream.errorCode != 0) diff --git a/src/dlangide/ui/dsourceedit.d b/src/dlangide/ui/dsourceedit.d index 29d1215..8bc8739 100644 --- a/src/dlangide/ui/dsourceedit.d +++ b/src/dlangide/ui/dsourceedit.d @@ -103,7 +103,7 @@ class SimpleDSyntaxHighlighter : SyntaxHighlighter { long ms0 = currentTimeMillis(); _props = props; changeStartLine = 0; - changeEndLine = lines.length; + changeEndLine = cast(int)lines.length; _lines.init(lines[changeStartLine..$], _file, changeStartLine); _tokenizer.init(_lines); int tokenPos = 0; @@ -128,7 +128,7 @@ class SimpleDSyntaxHighlighter : SyntaxHighlighter { // fill with category for (int i = tokenLine; i <= newLine; i++) { int start = i > tokenLine ? 0 : tokenPos; - int end = i < newLine ? lines[i].length : newPos; + int end = i < newLine ? cast(int)lines[i].length : newPos; for (int j = start; j < end; j++) _props[i][j] = category; }