Skip to content

Commit 341a096

Browse files
Merge pull request #31 from kar-rahul-aws/check_misra
Fix for MISRA compliance
2 parents e937cb2 + 4d463a4 commit 341a096

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/MQTTFileDownloader_cbor.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ bool CBOR_Decode_GetStreamResponseMessage( const uint8_t * messageBuffer,
114114

115115
if( CborNoError == cborResult )
116116
{
117-
cborResult = cbor_value_get_int( &value, ( int * ) fileId );
117+
cborResult = cbor_value_get_int( &value, ( int32_t * ) fileId );
118118
}
119119

120120
/* Find the block ID. */
@@ -132,7 +132,7 @@ bool CBOR_Decode_GetStreamResponseMessage( const uint8_t * messageBuffer,
132132

133133
if( CborNoError == cborResult )
134134
{
135-
cborResult = cbor_value_get_int( &value, ( int * ) blockId );
135+
cborResult = cbor_value_get_int( &value, ( int32_t * ) blockId );
136136
}
137137

138138
/* Find the block size. */
@@ -150,7 +150,7 @@ bool CBOR_Decode_GetStreamResponseMessage( const uint8_t * messageBuffer,
150150

151151
if( CborNoError == cborResult )
152152
{
153-
cborResult = cbor_value_get_int( &value, ( int * ) blockSize );
153+
cborResult = cbor_value_get_int( &value, ( int32_t * ) blockSize );
154154
}
155155

156156
/* Find the payload bytes. */

0 commit comments

Comments
 (0)