antirez / antirez/lua-cmsgpack

Fix compilation warnings

未关闭
#47 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
383
派生
122
PR 合并指标
30 天内没有已合并 PR

描述

```
lua_cmsgpack.c: In function ‘mp_unpack_full’:
lua_cmsgpack.c:802:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if (offset > len)
^
lua_cmsgpack.c: In function ‘luaopen_create’:
lua_cmsgpack.c:899:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < (sizeof(cmds)/sizeof(*cmds) - 1); i++) {
^
lua_cmsgpack.c: In function ‘luaopen_cmsgpack_safe’:
lua_cmsgpack.c:934:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < (sizeof(cmds)/sizeof(*cmds) - 1); i++) {
^
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。