robik / ConsoleD

Because colors are awesome.
63 stars 11 forks source link

Cast buffer length argument to uint. #24

Closed mintyfresh closed 8 years ago

mintyfresh commented 8 years ago

This fixes 64-bit builds on windows, where writeBufferw.length is a ulong.

Previously,

source\terminal.d(1027,18): Error: function core.sys.windows.windows.WriteConsoleW (void* hConsoleOutput, const(void*) lpBuffer, uint nNumberOfCharsToWrite, uint* lpNumberOfCharsWritten, void* lpReserved) is not callable using argument types (void*, immutable(wchar)*, ulong, uint*, typeof(null))
robik commented 8 years ago

Fixed in PR #22