From e447f058e2b42affe9fe24df904de6b90874fbf3 Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Mon, 14 May 2018 20:56:30 +0200 Subject: [PATCH] Problem: C4244 warnings regarding SOCKET vs. int in test_system Solution: Use fd_t --- tests/test_system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_system.cpp b/tests/test_system.cpp index c9d16f95..04223292 100644 --- a/tests/test_system.cpp +++ b/tests/test_system.cpp @@ -82,7 +82,7 @@ int main (void) return -1; } // Check that we can create 1,000 sockets - int handle[MAX_SOCKETS]; + fd_t handle[MAX_SOCKETS]; int count; for (count = 0; count < MAX_SOCKETS; count++) { handle[count] = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP);