Use C++ cast insted of C-style cast

This commit is contained in:
Carles Fernandez 2021-01-26 11:58:46 +01:00
parent d738d893c6
commit 7f23b6d88b
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ int my_strverscmp(const char *s1, const char *s2)
const int8_t CMP = 2;
const int8_t LEN = 3;
const unsigned char *p1 = (const unsigned char *)s1;
const unsigned char *p2 = (const unsigned char *)s2;
const auto *p1 = reinterpret_cast<const unsigned char *>(s1);
const auto *p2 = reinterpret_cast<const unsigned char *>(s2);
/* Symbol(s) 0 [1-9] others
Transition (10) 0 (01) d (00) x */
static const uint8_t next_state[] =