Fix wrong order of bytesting metadata struct initialization
Luckily a noop since the enum equals 0. Ooops.
@@ -34,7 +34,8 @@ cbor_item_t *cbor_new_definite_bytestring() {
*item = (cbor_item_t){
.refcount = 1,
.type = CBOR_TYPE_BYTESTRING,
- .metadata = {.bytestring_metadata = {_CBOR_METADATA_DEFINITE, 0}}};
+ .metadata = {.bytestring_metadata = {.type = _CBOR_METADATA_DEFINITE,
+ .length = 0}}};
return item;
}
