/* errors in converting to JSON */
CborErrorJsonObjectKeyIsAggregate,
CborErrorJsonObjectKeyNotString,
+ CborErrorJsonNotImplemented,
CborErrorOutOfMemory = ~0U / 2 + 1,
CborErrorInternalError = ~0U
if (!cbor_value_is_length_known(value))
return CborErrorUnknownLength;
uint64_t v = _cbor_value_extract_int64_helper(value);
- *length = v;
+ *length = (size_t)v;
if (*length != v)
return CborErrorDataTooLarge;
return CborNoError;
if (!cbor_value_is_length_known(value))
return CborErrorUnknownLength;
uint64_t v = _cbor_value_extract_int64_helper(value);
- *length = v;
+ *length = (size_t)v;
if (*length != v)
return CborErrorDataTooLarge;
return CborNoError;
if (!cbor_value_is_length_known(value))
return CborErrorUnknownLength;
uint64_t v = _cbor_value_extract_int64_helper(value);
- *length = v;
+ *length = (size_t)v;
if (*length != v)
return CborErrorDataTooLarge;
return CborNoError;