1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 12:10:34 +00:00

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

View File

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