4 Star 0 Fork 8

OpenCloudOS Stream/zlib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
7a7202de3568522dfc75a455927ccbd7faf63411.patch 829 Bytes
一键复制 编辑 原始数据 按行查看 历史
ocs-bot 提交于 2025-01-13 11:23 . - [Type] bugfix
From 7a7202de3568522dfc75a455927ccbd7faf63411 Mon Sep 17 00:00:00 2001
From: Mark Adler <[email protected]>
Date: Fri, 9 Feb 2024 16:44:15 -0800
Subject: [PATCH] Correct a variable type in deflate.c.
---
deflate.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/deflate.c b/deflate.c
index 4b804e6dc..10f169500 100644
--- a/deflate.c
+++ b/deflate.c
@@ -1635,7 +1635,8 @@ local block_state deflate_stored(deflate_state *s, int flush) {
* possible. If flushing, copy the remaining available input to next_out as
* stored blocks, if there is enough space.
*/
- unsigned len, left, have, last = 0;
+ int last = 0;
+ unsigned len, left, have;
unsigned used = s->strm->avail_in;
do {
/* Set len to the maximum size block that we can copy directly with the
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/zlib.git
[email protected]:opencloudos-stream/zlib.git
opencloudos-stream
zlib
zlib
master

搜索帮助