瀏覽代碼

Z991239-385 #comment 处理编译告警

gifur 5 年之前
父節點
當前提交
7de3affbce
共有 1 個文件被更改,包括 2 次插入2 次删除
  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);
 }