Improve type cast

pull/10699/head
George Psimenos 2019-05-31 13:59:40 +01:00
parent 9f66347bd3
commit f82b7d8229
1 changed files with 1 additions and 1 deletions

View File

@ -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