Explorar el Código

Z991239-385 #comment 处理编译告警

gifur hace 5 años
padre
commit
7de3affbce
Se han modificado 1 ficheros con 2 adiciones y 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);
 }