Explorar o código

Z991239-385 #comment 处理编译告警

gifur %!s(int64=5) %!d(string=hai) anos
pai
achega
7de3affbce
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      libtoolkit/sockutil.h

+ 2 - 2
libtoolkit/sockutil.h

@@ -39,8 +39,8 @@ static int tsend_n_v2(int fd,
 {
 	WSABUF wbuf[2] = 
 	{
-		{n1, (char*)buf1},
-		{n2, (char*)buf2},
+		{(ULONG)n1, (char*)buf1},
+		{(ULONG)n2, (char*)buf2},
 	};
 	return tsend_n_v(fd, &wbuf[0], 2, timeout);
 }