Skip to content

Commit 1c5c9a1

Browse files
committed
Fix conversion warning in isql
1 parent 2891d39 commit 1c5c9a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/isql/isql.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ static int win32ReadConsole(FILE* file, CharBuffer& mbBuffer)
344344
// buffers and set ERROR_NOT_ENOUGH_MEMORY error. Thus, use initial buffer size
345345
// twice less than for Windows 10 and handle error by reducing the buffer size.
346346

347-
static size_t maxLineLength = IsWindows10OrGreater() ? MAX_USHORT : MAX_SSHORT;
347+
static DWORD maxLineLength = IsWindows10OrGreater() ? MAX_USHORT : MAX_SSHORT;
348348
WCHAR* wideBuf = wideBuffer->getBuffer(maxLineLength, false);
349349

350350
DWORD charsRead;

0 commit comments

Comments
 (0)