Fix gcc compiler warning in QCBORDecode_VGetNextConsume (#107)
Fix 'incompatible pointer type' warning in QCBORDecode_VGetNextConsume.
Found with gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf compiler.
diff --git a/src/qcbor_decode.c b/src/qcbor_decode.c
index b3301c7..b1cec82 100644
--- a/src/qcbor_decode.c
+++ b/src/qcbor_decode.c
@@ -2727,7 +2727,7 @@
static inline QCBORError
ConsumeItem(QCBORDecodeContext *pMe,
const QCBORItem *pItemToConsume,
- uint_fast8_t *puNextNestLevel)
+ uint8_t *puNextNestLevel)
{
QCBORError uReturn;
QCBORItem Item;
@@ -2970,7 +2970,7 @@
that error code is returned.
*/
const uint8_t uMapNestLevel = DecodeNesting_GetBoundedModeLevel(&(pMe->nesting));
- uint_fast8_t uNextNestLevel;
+ uint8_t uNextNestLevel;
do {
/* Remember offset of the item because sometimes it has to be returned */
const size_t uOffset = UsefulInputBuf_Tell(&(pMe->InBuf));