lua-cmsgpack icon indicating copy to clipboard operation
lua-cmsgpack copied to clipboard

Fix compilation warnings

Open antirez opened this issue 10 years ago • 0 comments

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++) {
                   ^

antirez avatar Jun 18 '15 08:06 antirez