From: G.E. Date: Mon, 20 May 2024 15:03:56 +0000 (+0300) Subject: revert a change to assert , the original logic might have been X-Git-Tag: vectorscan/5.4.12^2~32^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F288%2Fhead;p=thirdparty%2Fvectorscan.git revert a change to assert , the original logic might have been 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. --- diff --git a/src/rose/rose_build_bytecode.cpp b/src/rose/rose_build_bytecode.cpp index d1a49aba..f9868075 100644 --- a/src/rose/rose_build_bytecode.cpp +++ b/src/rose/rose_build_bytecode.cpp @@ -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);