diff options
author | K.Takata <kentkt@csc.jp> | 2022-01-29 15:27:58 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-29 15:27:58 +0000 |
commit | 135e15251efd96c960e51e8ab31333c2d6887983 (patch) | |
tree | 580dd95f4442cd1bc356fcac07de2a4ef1e00e37 /src/os_win32.c | |
parent | d5cec1f1f055316c353cfa15ad8d5eb0952d50a0 (diff) | |
download | vim-git-135e15251efd96c960e51e8ab31333c2d6887983.tar.gz |
patch 8.2.4256: MS-Windows: compiler warnings when compiled with /W4v8.2.4256
Problem: MS-Windows: compiler warnings when compiled with /W4.
Solution: Small adjustments to the code. (Ken Takata, closes #9659)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r-- | src/os_win32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/os_win32.c b/src/os_win32.c index 20b93ae6e..36b2cf126 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -427,7 +427,7 @@ peek_console_input( DWORD nLength UNUSED, LPDWORD lpEvents) { - return read_console_input(hInput, lpBuffer, -1, lpEvents); + return read_console_input(hInput, lpBuffer, (DWORD)-1, lpEvents); } # ifdef FEAT_CLIENTSERVER @@ -439,7 +439,7 @@ msg_wait_for_multiple_objects( DWORD dwMilliseconds, DWORD dwWakeMask) { - if (read_console_input(NULL, NULL, -2, NULL)) + if (read_console_input(NULL, NULL, (DWORD)-2, NULL)) return WAIT_OBJECT_0; return MsgWaitForMultipleObjects(nCount, pHandles, fWaitAll, dwMilliseconds, dwWakeMask); @@ -5537,7 +5537,7 @@ mch_signal_job(job_T *job, char_u *how) { if (job->jv_channel != NULL && job->jv_channel->ch_anonymous_pipe) job->jv_channel->ch_killing = TRUE; - return TerminateJobObject(job->jv_job_object, -1) ? OK : FAIL; + return TerminateJobObject(job->jv_job_object, (UINT)-1) ? OK : FAIL; } return terminate_all(job->jv_proc_info.hProcess, -1) ? OK : FAIL; } @@ -6270,7 +6270,7 @@ write_chars( cchwritten = 1; } - if (cchwritten == length) + if (cchwritten == (DWORD)length) { written = cbToWrite; g_coord.X += (SHORT)cells; |