misc/Utf16Echo: Suppress some warnings
This commit is contained in:
parent
f57ed5bede
commit
bdf3e0ec4c
@ -28,9 +28,9 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
// Read it back.
|
||||
std::vector<CHAR_INFO> readBuffer(dataToWrite.size() * 2);
|
||||
COORD bufSize = {readBuffer.size(), 1};
|
||||
COORD bufSize = {static_cast<short>(readBuffer.size()), 1};
|
||||
COORD bufCoord = {0, 0};
|
||||
SMALL_RECT topLeft = {0, 0, readBuffer.size() - 1, 0};
|
||||
SMALL_RECT topLeft = {0, 0, static_cast<short>(readBuffer.size() - 1), 0};
|
||||
ret = ReadConsoleOutputW(
|
||||
GetStdHandle(STD_OUTPUT_HANDLE), readBuffer.data(),
|
||||
bufSize, bufCoord, &topLeft);
|
||||
|
Loading…
Reference in New Issue
Block a user