fix win32 x64 build

This commit is contained in:
Vadim Lopatin 2016-07-01 16:02:13 +03:00
parent 0cdd6a9216
commit e7e011e815
1 changed files with 1 additions and 1 deletions

View File

@ -938,7 +938,7 @@ class TerminalDevice : Thread {
return false; return false;
for (;;) { for (;;) {
DWORD bytesWritten = 0; DWORD bytesWritten = 0;
if (WriteFile(hpipe, cast(char*)msg.ptr, msg.length, &bytesWritten, null) != TRUE) { if (WriteFile(hpipe, cast(char*)msg.ptr, cast(int)msg.length, &bytesWritten, null) != TRUE) {
return false; return false;
} }
if (bytesWritten < msg.length) if (bytesWritten < msg.length)