Fix compilation error when DEBUG_OUTPUT=on

This commit is contained in:
Konstantinos Margaritis 2025-05-28 19:44:03 +00:00
parent c1c3a3caa0
commit e0196b2ed0
2 changed files with 3 additions and 4 deletions

View File

@ -76,7 +76,7 @@ vector<flat_set<NFAVertex>> gatherSuccessorsByDepth(const NGHolder &g,
if (v == succr) { if (v == succr) {
continue; continue;
} }
DEBUG_PRINTF("Node %zu depth %u\n", g[succ].index, d + 1); DEBUG_PRINTF("Node %zu depth %u\n", g[succr].index, d + 1);
next.insert(succr); next.insert(succr);
} }
} }
@ -118,7 +118,7 @@ vector<flat_set<NFAVertex>> gatherPredecessorsByDepth(const NGHolder &g,
if (v == predc) { if (v == predc) {
continue; continue;
} }
DEBUG_PRINTF("Node %zu depth %u\n", g[pred].index, d + 1); DEBUG_PRINTF("Node %zu depth %u\n", g[predc].index, d + 1);
next.insert(predc); next.insert(predc);
} }
} }

View File

@ -207,8 +207,7 @@ vector<RoseLongLitHashEntry> buildHashTable(
u32 lit_id = lit_offset.first; u32 lit_id = lit_offset.first;
u32 offset = lit_offset.second; u32 offset = lit_offset.second;
DEBUG_PRINTF("hash 0x%08x lit_id %u offset %u bucket %u\n", hash, DEBUG_PRINTF("hash 0x%08x lit_id %u offset %u bucket %u\n", m.first, lit_id, offset, bucket);
lit_id, offset, bucket);
auto &entry = tab[bucket]; auto &entry = tab[bucket];
entry.str_offset = verify_u32(litToOffsetVal.at(lit_id)); entry.str_offset = verify_u32(litToOffsetVal.at(lit_id));