mirror of https://github.com/ARMmbed/mbed-os.git
Improve type cast
parent
9f66347bd3
commit
f82b7d8229
|
@ -200,7 +200,7 @@ public:
|
||||||
switch (_mode) {
|
switch (_mode) {
|
||||||
#if DEVICE_CRC
|
#if DEVICE_CRC
|
||||||
case HARDWARE:
|
case HARDWARE:
|
||||||
hal_crc_compute_partial((uint8_t *)buffer, size);
|
hal_crc_compute_partial(static_cast<const uint8_t *>(buffer), size);
|
||||||
*crc = 0;
|
*crc = 0;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue