1 Star 0 Fork 58

ren_deqi/vim

forked from src-openEuler/vim 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-patch-9.0.0054-compiler-warning-for-size_t-to-int-co.patch 854 Bytes
一键复制 编辑 原始数据 按行查看 历史
From c7bd2f08e531f08723cdc677212a3633d11c9a97 Mon Sep 17 00:00:00 2001
From: Bram Moolenaar <Bram@vim.org>
Date: Fri, 15 Jul 2022 20:45:20 +0100
Subject: [PATCH] patch 9.0.0054: compiler warning for size_t to int conversion
Problem: Compiler warning for size_t to int conversion.
Solution: Add type cast. (Mike Williams, closes #10741)
---
src/insexpand.c | 2 +-
1 files changed, 1 insertions(+), 1 deletion(-)
diff --git a/src/insexpand.c b/src/insexpand.c
index 9c598a8..b49a631 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -643,7 +643,7 @@ ins_compl_infercase_gettext(
if (ga_grow(&gap, IOSIZE) == FAIL)
return (char_u *)"[failed]";
STRCPY(gap.ga_data, IObuff);
- gap.ga_len = STRLEN(IObuff);
+ gap.ga_len = (int)STRLEN(IObuff);
}
else if (has_mbyte)
p += (*mb_char2bytes)(wca[i++], p);
--
1.8.3.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ren-deqi/vim.git
git@gitee.com:ren-deqi/vim.git
ren-deqi
vim
vim
master

搜索帮助