Big change to allow all tag encoding functions to output 'borrowed' format
diff --git a/src/qcbor_encode.c b/src/qcbor_encode.c
index a53f775..053f1f6 100644
--- a/src/qcbor_encode.c
+++ b/src/qcbor_encode.c
@@ -648,7 +648,9 @@
base-2 for big floats and base-10 for decimal fractions, but that
has no effect on the code here.
*/
- QCBOREncode_AddTag(pMe, uTag);
+ if(uTag != CBOR_TAG_INVALID64) {
+ QCBOREncode_AddTag(pMe, uTag);
+ }
QCBOREncode_OpenArray(pMe);
QCBOREncode_AddInt64(pMe, nExponent);
if(!UsefulBuf_IsNULLC(BigNumMantissa)) {