Mercurial > vim
comparison src/channel.c @ 20307:ad6949eaa1c7 v8.2.0709
patch 8.2.0709: MS-Windows: compiler warning for int vs size_t
Commit: https://github.com/vim/vim/commit/ea554ca4faf4a0b96706ea24130c4f485b24b241
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 7 17:46:59 2020 +0200
patch 8.2.0709: MS-Windows: compiler warning for int vs size_t
Problem: MS-Windows: compiler warning for int vs size_t.
Solution: Add type cast. (Mike Williams)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 07 May 2020 18:00:04 +0200 |
parents | 8a694c9447d7 |
children | 42ab4d40e78f |
comparison
equal
deleted
inserted
replaced
20306:9ca1046b0e91 | 20307:ad6949eaa1c7 |
---|---|
1035 // one millisecond. Let's do it for all systems, because we don't know | 1035 // one millisecond. Let's do it for all systems, because we don't know |
1036 // why this is needed. | 1036 // why this is needed. |
1037 if (waittime == 0) | 1037 if (waittime == 0) |
1038 waittime = 1; | 1038 waittime = 1; |
1039 | 1039 |
1040 sd = channel_connect(channel, addr->ai_addr, addr->ai_addrlen, | 1040 sd = channel_connect(channel, addr->ai_addr, (int)addr->ai_addrlen, |
1041 &waittime); | 1041 &waittime); |
1042 if (sd >= 0) | 1042 if (sd >= 0) |
1043 break; | 1043 break; |
1044 } | 1044 } |
1045 | 1045 |