big error code renumber to support classification of recoverable errors and thus skip over errors when searching maps
diff --git a/src/qcbor_encode.c b/src/qcbor_encode.c
index 08de596..a53f775 100644
--- a/src/qcbor_encode.c
+++ b/src/qcbor_encode.c
@@ -203,7 +203,7 @@
QCBOR_ERR_ARRAY_OR_MAP_STILL_OPEN -- Finish called without enough closes
Would generate not-well-formed CBOR
- QCBOR_ERR_UNSUPPORTED -- Simple type between 24 and 31
+ QCBOR_ERR_ENCODE_UNSUPPORTED -- Simple type between 24 and 31
*/
@@ -565,7 +565,7 @@
{
if(me->uError == QCBOR_SUCCESS) {
if(uNum >= CBOR_SIMPLEV_RESERVED_START && uNum <= CBOR_SIMPLEV_RESERVED_END) {
- me->uError = QCBOR_ERR_UNSUPPORTED;
+ me->uError = QCBOR_ERR_ENCODE_UNSUPPORTED;
} else {
// AppendHead() does endian swapping for the float / double
AppendCBORHead(me, CBOR_MAJOR_TYPE_SIMPLE, uNum, uMinLen);