mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 17:31:51 +03:00
Merge pull request #287 from gtsoul-tech/bugFix/cppcheck-cStylecasts-Part4
Part 4 of C-style cast cppcheck
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user