Merge pull request #287 from gtsoul-tech/bugFix/cppcheck-cStylecasts-Part4

Part 4 of C-style cast cppcheck
This commit is contained in:
Konstantinos Margaritis
2024-05-21 15:59:51 +03:00
committed by GitHub
26 changed files with 282 additions and 239 deletions

View File

@@ -43,8 +43,8 @@ struct NFA;
static really_inline
const struct NFA *getSmwrNfa(const struct SmallWriteEngine *smwr) {
assert(smwr);
const struct NFA *n
= (const struct NFA *)((const char *)smwr + sizeof(*smwr));
// cppcheck-suppress cstyleCast
const struct NFA *n= (const struct NFA *)((const char *)smwr + sizeof(*smwr));
assert(ISALIGNED_CL(n));
return n;
}