From 5b8231674723e0ccd2298528dac1732f0337adbe Mon Sep 17 00:00:00 2001 From: Rahul Kar Date: Tue, 28 May 2024 09:05:29 +0000 Subject: [PATCH] Revert unit test changes in #25 for MISRA compliance --- source/MQTTFileDownloader_cbor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/MQTTFileDownloader_cbor.c b/source/MQTTFileDownloader_cbor.c index a7aba2f..a916d8e 100644 --- a/source/MQTTFileDownloader_cbor.c +++ b/source/MQTTFileDownloader_cbor.c @@ -114,7 +114,7 @@ bool CBOR_Decode_GetStreamResponseMessage( const uint8_t * messageBuffer, if( CborNoError == cborResult ) { - cborResult = cbor_value_get_int( &value, ( int * ) fileId ); + cborResult = cbor_value_get_int( &value, ( int32_t * ) fileId ); } /* Find the block ID. */ @@ -132,7 +132,7 @@ bool CBOR_Decode_GetStreamResponseMessage( const uint8_t * messageBuffer, if( CborNoError == cborResult ) { - cborResult = cbor_value_get_int( &value, ( int * ) blockId ); + cborResult = cbor_value_get_int( &value, ( int32_t * ) blockId ); } /* Find the block size. */ @@ -150,7 +150,7 @@ bool CBOR_Decode_GetStreamResponseMessage( const uint8_t * messageBuffer, if( CborNoError == cborResult ) { - cborResult = cbor_value_get_int( &value, ( int * ) blockSize ); + cborResult = cbor_value_get_int( &value, ( int32_t * ) blockSize ); } /* Find the payload bytes. */