Merge pull request #11703 from fhessel/fix-ubjson-i64

sys/ubjson: Write missing marker for i64
This commit is contained in:
Leandro Lanzieri 2019-06-18 11:14:11 +02:00 committed by GitHub
commit f32ab700cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,7 @@ ssize_t ubjson_write_i64(ubjson_cookie_t *restrict cookie, int64_t value)
}
ssize_t result = 0;
WRITE_MARKER(UBJSON_MARKER_INT64);
network_uint64_t buf = byteorder_htonll((uint64_t) value);
WRITE_BUF(&buf, sizeof(buf));
return result;