mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-18 18:20:35 +03:00
cstylecasts and suppressions
This commit is contained in:
@@ -237,6 +237,7 @@ unichar readUtf8CodePoint2c(const char *s) {
|
||||
|
||||
static
|
||||
unichar readUtf8CodePoint3c(const char *s) {
|
||||
// cppcheck-suppress cstyleCast
|
||||
auto *ts = (const u8 *)s;
|
||||
assert(ts[0] >= 0xe0 && ts[0] < 0xf0);
|
||||
assert(ts[1] >= 0x80 && ts[1] < 0xc0);
|
||||
@@ -253,6 +254,7 @@ unichar readUtf8CodePoint3c(const char *s) {
|
||||
|
||||
static
|
||||
unichar readUtf8CodePoint4c(const char *s) {
|
||||
// cppcheck-suppress cstyleCast
|
||||
auto *ts = (const u8 *)s;
|
||||
assert(ts[0] >= 0xf0 && ts[0] < 0xf8);
|
||||
assert(ts[1] >= 0x80 && ts[1] < 0xc0);
|
||||
|
||||
Reference in New Issue
Block a user