Merge pull request #11703 from fhessel/fix-ubjson-i64
sys/ubjson: Write missing marker for i64
This commit is contained in:
commit
f32ab700cb
@ -104,6 +104,7 @@ ssize_t ubjson_write_i64(ubjson_cookie_t *restrict cookie, int64_t value)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ssize_t result = 0;
|
ssize_t result = 0;
|
||||||
|
WRITE_MARKER(UBJSON_MARKER_INT64);
|
||||||
network_uint64_t buf = byteorder_htonll((uint64_t) value);
|
network_uint64_t buf = byteorder_htonll((uint64_t) value);
|
||||||
WRITE_BUF(&buf, sizeof(buf));
|
WRITE_BUF(&buf, sizeof(buf));
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user