From 544cb0683804c4193f2fa3e6ed7ae9b73047272e Mon Sep 17 00:00:00 2001 From: David Tschumperle Date: Sun, 17 Mar 2024 11:26:21 +0100 Subject: [PATCH] . --- CImg.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CImg.h b/CImg.h index f22b1d41..e81f49af 100644 --- a/CImg.h +++ b/CImg.h @@ -23403,10 +23403,9 @@ namespace cimg_library { CImg::sequence(arg3,arg2 + 1,arg2 + arg3).move_to(l_opcode); arg1+=arg3; const CImg &rcode_back = rcode.back(); - is_sth&=p3==p1+1 && rcode_back[1]==arg2 && + is_sth&=p3>p1 && rcode_back[1]==arg2 && (rcode_back[0]==(ulongT)mp_string_init || - rcode_back[0]==(ulongT)mp_vector_init) && - !is_comp_vector(arg2) && variable_def.size()==p2; + rcode_back[0]==(ulongT)mp_vector_init) && variable_def.size()==p2 && !is_comp_vector(arg2); // ^^ Tricky part: detect if 'arg2' is a newly constructed vector not assigned to a variable // (i.e. a vector-valued literal). } else {