mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
avoid warning
This commit is contained in:
@@ -55,7 +55,7 @@ little_endian(uint32_t v) {
|
|||||||
typedef void * document;
|
typedef void * document;
|
||||||
|
|
||||||
static inline uint32_t
|
static inline uint32_t
|
||||||
get_length(const document buffer) {
|
get_length(document buffer) {
|
||||||
union {
|
union {
|
||||||
uint32_t v;
|
uint32_t v;
|
||||||
uint8_t b[4];
|
uint8_t b[4];
|
||||||
@@ -243,7 +243,7 @@ op_reply(lua_State *L) {
|
|||||||
lua_pushlightuserdata(L, (void *)doc);
|
lua_pushlightuserdata(L, (void *)doc);
|
||||||
lua_rawseti(L, 2, i);
|
lua_rawseti(L, 2, i);
|
||||||
|
|
||||||
int32_t doc_len = get_length((const document)doc);
|
int32_t doc_len = get_length((document)doc);
|
||||||
|
|
||||||
doc += doc_len;
|
doc += doc_len;
|
||||||
sz -= doc_len;
|
sz -= doc_len;
|
||||||
|
|||||||
Reference in New Issue
Block a user