fix type casts
diff --git a/src/qcbor_decode.c b/src/qcbor_decode.c
index d9117e5..d58c12b 100644
--- a/src/qcbor_decode.c
+++ b/src/qcbor_decode.c
@@ -2223,7 +2223,7 @@
}
size_t uOffset;
- pMe->uLastError = MapSearch(pMe, pSearch, &uOffset, NULL);
+ pMe->uLastError = (uint8_t)MapSearch(pMe, pSearch, &uOffset, NULL);
if(pMe->uLastError != QCBOR_SUCCESS) {
return;
}
@@ -2315,7 +2315,7 @@
/* Get the data item that is the map that is being searched */
QCBORItem Item;
- pMe->uLastError = QCBORDecode_GetNext(pMe, &Item);
+ pMe->uLastError = (uint8_t)QCBORDecode_GetNext(pMe, &Item);
if(pMe->uLastError != QCBOR_SUCCESS) {
return;
}