mirror of https://github.com/buggins/dlangide.git
fix x64 builds
This commit is contained in:
parent
38b99a9277
commit
bf99a4ed95
|
@ -1439,7 +1439,7 @@ class Tokenizer
|
||||||
|
|
||||||
// fetch next line from source stream
|
// fetch next line from source stream
|
||||||
protected bool nextLine() {
|
protected bool nextLine() {
|
||||||
_prevLineLength = _lineText.length;
|
_prevLineLength = cast(int)_lineText.length;
|
||||||
_lineText = _lineStream.readLine();
|
_lineText = _lineStream.readLine();
|
||||||
if (!_lineText) {
|
if (!_lineText) {
|
||||||
if (_lineStream.errorCode != 0)
|
if (_lineStream.errorCode != 0)
|
||||||
|
|
|
@ -103,7 +103,7 @@ class SimpleDSyntaxHighlighter : SyntaxHighlighter {
|
||||||
long ms0 = currentTimeMillis();
|
long ms0 = currentTimeMillis();
|
||||||
_props = props;
|
_props = props;
|
||||||
changeStartLine = 0;
|
changeStartLine = 0;
|
||||||
changeEndLine = lines.length;
|
changeEndLine = cast(int)lines.length;
|
||||||
_lines.init(lines[changeStartLine..$], _file, changeStartLine);
|
_lines.init(lines[changeStartLine..$], _file, changeStartLine);
|
||||||
_tokenizer.init(_lines);
|
_tokenizer.init(_lines);
|
||||||
int tokenPos = 0;
|
int tokenPos = 0;
|
||||||
|
@ -128,7 +128,7 @@ class SimpleDSyntaxHighlighter : SyntaxHighlighter {
|
||||||
// fill with category
|
// fill with category
|
||||||
for (int i = tokenLine; i <= newLine; i++) {
|
for (int i = tokenLine; i <= newLine; i++) {
|
||||||
int start = i > tokenLine ? 0 : tokenPos;
|
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++)
|
for (int j = start; j < end; j++)
|
||||||
_props[i][j] = category;
|
_props[i][j] = category;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue