mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-18 18:20:35 +03:00
fix cStyleCasts
This commit is contained in:
@@ -53,10 +53,10 @@ void hwlmGenerateDumpFiles(const HWLM *h, const string &base) {
|
||||
|
||||
switch (h->type) {
|
||||
case HWLM_ENGINE_NOOD:
|
||||
noodPrintStats((const noodTable *)HWLM_C_DATA(h), f);
|
||||
noodPrintStats(reinterpret_cast<const noodTable *>(HWLM_C_DATA(h)), f);
|
||||
break;
|
||||
case HWLM_ENGINE_FDR:
|
||||
fdrPrintStats((const FDR *)HWLM_C_DATA(h), f);
|
||||
fdrPrintStats(reinterpret_cast<const FDR *>(HWLM_C_DATA(h)), f);
|
||||
break;
|
||||
default:
|
||||
fprintf(f, "<unknown hwlm subengine>\n");
|
||||
|
||||
@@ -156,7 +156,7 @@ void noodPrintStats(const noodTable *n, FILE *f) {
|
||||
n->msk_len);
|
||||
fprintf(f, "String: ");
|
||||
for (u32 i = 0; i < n->msk_len; i++) {
|
||||
const u8 *m = (const u8 *)&n->cmp;
|
||||
const u8 *m = reinterpret_cast<const u8 *>(&n->cmp);
|
||||
if (isgraph(m[i]) && m[i] != '\\') {
|
||||
fprintf(f, "%c", m[i]);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user