mirror of https://github.com/buggins/dlangui.git
fix x64 build
This commit is contained in:
parent
4984dee061
commit
645ed7c9b5
|
@ -138,7 +138,7 @@ class OutputLineStream {
|
|||
default:
|
||||
char[4] d;
|
||||
for (int i = 0; i < s.length; i++) {
|
||||
int bytes = encode(d, s[i]);
|
||||
int bytes = cast(int)encode(d, s[i]);
|
||||
for (int j = 0; j < bytes; j++)
|
||||
_buf[_len++] = d[j];
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ class OutputLineStream {
|
|||
case EncodingType.UTF16BE:
|
||||
wchar[2] d;
|
||||
for (int i = 0; i < s.length; i++) {
|
||||
int n = encode(d, s[i]);
|
||||
int n = cast(int)encode(d, s[i]);
|
||||
for (int j = 0; j < n; j++) {
|
||||
_buf[_len++] = cast(char)(d[j] >> 8);
|
||||
_buf[_len++] = cast(char)(d[j] & 0xFF);
|
||||
|
@ -156,7 +156,7 @@ class OutputLineStream {
|
|||
case EncodingType.UTF16LE:
|
||||
wchar[2] d;
|
||||
for (int i = 0; i < s.length; i++) {
|
||||
int n = encode(d, s[i]);
|
||||
int n = cast(int)encode(d, s[i]);
|
||||
for (int j = 0; j < n; j++) {
|
||||
_buf[_len++] = cast(char)(d[j] & 0xFF);
|
||||
_buf[_len++] = cast(char)(d[j] >> 8);
|
||||
|
|
|
@ -486,7 +486,7 @@ class EditableContent {
|
|||
|
||||
@property EditableContent syntaxHighlighter(SyntaxHighlighter syntaxHighlighter) {
|
||||
_syntaxHighlighter = syntaxHighlighter;
|
||||
updateTokenProps(0, _lines.length);
|
||||
updateTokenProps(0, cast(int)_lines.length);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -534,7 +534,7 @@ class EditableContent {
|
|||
/// append one or more lines at end
|
||||
void appendLines(dstring[] lines...) {
|
||||
TextRange rangeBefore;
|
||||
rangeBefore.start = rangeBefore.end = lineEnd(_lines.length ? _lines.length - 1 : 0);
|
||||
rangeBefore.start = rangeBefore.end = lineEnd(_lines.length ? cast(int)_lines.length - 1 : 0);
|
||||
EditOperation op = new EditOperation(EditAction.Replace, rangeBefore, lines);
|
||||
performOperation(op, this);
|
||||
}
|
||||
|
@ -575,12 +575,12 @@ class EditableContent {
|
|||
if (_multiline) {
|
||||
_lines = splitDString(newContent);
|
||||
_tokenProps.length = _lines.length;
|
||||
updateTokenProps(0, _lines.length);
|
||||
updateTokenProps(0, cast(int)_lines.length);
|
||||
} else {
|
||||
_lines.length = 1;
|
||||
_lines[0] = replaceEolsWithSpaces(newContent);
|
||||
_tokenProps.length = 1;
|
||||
updateTokenProps(0, _lines.length);
|
||||
updateTokenProps(0, cast(int)_lines.length);
|
||||
}
|
||||
notifyContentReplaced();
|
||||
return this;
|
||||
|
|
Loading…
Reference in New Issue