mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
fix conversions
This commit is contained in:
parent
6989314295
commit
6830ce21ef
@ -39,7 +39,7 @@ bytecode_ptr<NFA> buildLbrVerm16(const CharReach &cr, const depth &repeatMin,
|
||||
const CharReach escapes(~cr);
|
||||
|
||||
if (escapes.count() > 16) {
|
||||
return nullptr;
|
||||
return bytecode_ptr<NFA>(nullptr);
|
||||
}
|
||||
|
||||
enum RepeatType rtype = chooseRepeatType(repeatMin, repeatMax, minPeriod,
|
||||
@ -62,7 +62,7 @@ bytecode_ptr<NFA> buildLbrNVerm16(const CharReach &cr, const depth &repeatMin,
|
||||
const CharReach escapes(cr);
|
||||
|
||||
if (escapes.count() > 16) {
|
||||
return nullptr;
|
||||
return bytecode_ptr<NFA>(nullptr);
|
||||
}
|
||||
|
||||
enum RepeatType rtype = chooseRepeatType(repeatMin, repeatMax, minPeriod,
|
||||
|
@ -320,7 +320,7 @@ void mergeNfaComponent(NGHolder &dest, const NGHolder &vic, size_t common_len) {
|
||||
DEBUG_PRINTF("skipping common edge\n");
|
||||
assert(edge(u, v, dest).second);
|
||||
// Should never merge edges with different top values.
|
||||
assert(vic[e].tops == dest[edge(u, v, dest)].tops);
|
||||
assert(vic[e].tops == dest[edge(u, v, dest).first].tops);
|
||||
continue;
|
||||
} else {
|
||||
assert(is_any_accept(v, dest));
|
||||
|
Loading…
x
Reference in New Issue
Block a user