]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
revert a change to assert , the original logic might have been 288/head
authorG.E. <gregory.economou@vectorcamp.gr>
Mon, 20 May 2024 15:03:56 +0000 (18:03 +0300)
committerG.E. <gregory.economou@vectorcamp.gr>
Mon, 20 May 2024 15:03:56 +0000 (18:03 +0300)
subtely clever (or else totally useless all these years), when we
see which of the two we might delete that assert entirely. for now
put it back as it was.

src/rose/rose_build_bytecode.cpp

index d1a49abad2d253d81fba5d89b6ff5051d3f28fc0..f986807599458be33c353fee3f22fbaa15bf96cd 100644 (file)
@@ -2966,8 +2966,7 @@ void buildFragmentPrograms(const RoseBuildImpl &build,
             !lit_prog.empty()) {
             const auto &cfrag = fragments[pfrag.included_frag_id];
             assert(pfrag.s.length() >= cfrag.s.length() &&
-                   !pfrag.s.any_nocase() != !cfrag.s.any_nocase());
-                   /** !pfrag.s.any_nocase() >= !cfrag.s.any_nocase()); **/
+                   !pfrag.s.any_nocase() >= !cfrag.s.any_nocase());
             u32 child_offset = cfrag.lit_program_offset;
             DEBUG_PRINTF("child %u offset %u\n", cfrag.fragment_id,
                          child_offset);