Skip to content

Commit f82b7d8

Browse files
committed
Improve type cast
1 parent 9f66347 commit f82b7d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/MbedCRC.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class MbedCRC {
200200
switch (_mode) {
201201
#if DEVICE_CRC
202202
case HARDWARE:
203-
hal_crc_compute_partial((uint8_t *)buffer, size);
203+
hal_crc_compute_partial(static_cast<const uint8_t *>(buffer), size);
204204
*crc = 0;
205205
break;
206206
#endif

0 commit comments

Comments
 (0)