mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
sproto bugfix, see sproto issue 34 for detail
This commit is contained in:
@@ -152,7 +152,7 @@ struct_field(const uint8_t * stream, size_t sz) {
|
|||||||
sz -= header;
|
sz -= header;
|
||||||
stream += header;
|
stream += header;
|
||||||
for (i=0;i<fn;i++) {
|
for (i=0;i<fn;i++) {
|
||||||
int value= toword(field + i * SIZEOF_FIELD + SIZEOF_HEADER);
|
int value= toword(field + i * SIZEOF_FIELD);
|
||||||
uint32_t dsz;
|
uint32_t dsz;
|
||||||
if (value != 0)
|
if (value != 0)
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user