mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
msgpack-gen: Fix msgpack_rpc_init_function_metadata
The function was broken on release builds
This commit is contained in:
parent
5a640821f9
commit
31f835adc4
@ -126,10 +126,12 @@ void msgpack_rpc_init_function_metadata(Dictionary *metadata)
|
|||||||
{
|
{
|
||||||
msgpack_unpacked unpacked;
|
msgpack_unpacked unpacked;
|
||||||
msgpack_unpacked_init(&unpacked);
|
msgpack_unpacked_init(&unpacked);
|
||||||
assert(msgpack_unpack_next(&unpacked,
|
if (msgpack_unpack_next(&unpacked,
|
||||||
(const char *)msgpack_metadata,
|
(const char *)msgpack_metadata,
|
||||||
sizeof(msgpack_metadata),
|
sizeof(msgpack_metadata),
|
||||||
NULL) == MSGPACK_UNPACK_SUCCESS);
|
NULL) != MSGPACK_UNPACK_SUCCESS) {
|
||||||
|
abort();
|
||||||
|
}
|
||||||
Object functions;
|
Object functions;
|
||||||
msgpack_rpc_to_object(&unpacked.data, &functions);
|
msgpack_rpc_to_object(&unpacked.data, &functions);
|
||||||
msgpack_unpacked_destroy(&unpacked);
|
msgpack_unpacked_destroy(&unpacked);
|
||||||
|
Loading…
Reference in New Issue
Block a user