diff 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
line wrap: on
line diff
--- a/src/channel.c
+++ b/src/channel.c
@@ -1037,7 +1037,7 @@ channel_open(
 	if (waittime == 0)
 	    waittime = 1;
 
-	sd = channel_connect(channel, addr->ai_addr, addr->ai_addrlen,
+	sd = channel_connect(channel, addr->ai_addr, (int)addr->ai_addrlen,
 								   &waittime);
 	if (sd >= 0)
 	    break;