mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
fix issue #200
This commit is contained in:
@@ -179,7 +179,7 @@ wb_string(struct write_block *wb, const char *str, int len) {
|
|||||||
wb_push(wb, str, len);
|
wb_push(wb, str, len);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
int n;
|
uint8_t n;
|
||||||
if (len < 0x10000) {
|
if (len < 0x10000) {
|
||||||
n = COMBINE_TYPE(TYPE_LONG_STRING, 2);
|
n = COMBINE_TYPE(TYPE_LONG_STRING, 2);
|
||||||
wb_push(wb, &n, 1);
|
wb_push(wb, &n, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user