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. */