diff --git a/CImg.h b/CImg.h index 02570d6f..567228cd 100644 --- a/CImg.h +++ b/CImg.h @@ -54,7 +54,7 @@ // Set version number of the library. #ifndef cimg_version -#define cimg_version 343 +#define cimg_version 344 /*----------------------------------------------------------- # @@ -21291,15 +21291,25 @@ namespace cimg_library { if (!std::strncmp(ss,"isin(",5)) { // Is in sequence/vector? if (ss5>=se1) _cimg_mp_return(0); _cimg_mp_op("Function 'isin()'"); - pos = scalar(); - CImg::vector((ulongT)mp_isin,pos,0).move_to(l_opcode); + is_sth = true; // Are all arguments constants ? for (s = ss5; s::vector(arg1,size(arg1)).move_to(l_opcode); s = ns; } + if (is_sth) { // All arguments are constant -> return constant + if (l_opcode._width<2) _cimg_mp_return(0); + const double target = mem[l_opcode(0,0)]; + for (unsigned int i = 1; i::vector((ulongT)mp_isin,pos,0).move_to(l_opcode,0); (l_opcode>'y').move_to(opcode); opcode[2] = opcode._height; opcode.move_to(code); diff --git a/html/header.html b/html/header.html index b443fceb..b7302b9f 100644 --- a/html/header.html +++ b/html/header.html @@ -23,7 +23,7 @@
Logo

- Latest stable version: 3.4.2        Current pre-release: 3.4.3 (2024/10/09) + Latest stable version: 3.4.3 (2024/10/11)


diff --git a/html/header_doxygen.html b/html/header_doxygen.html index 9341cc10..ac97ef0e 100644 --- a/html/header_doxygen.html +++ b/html/header_doxygen.html @@ -26,7 +26,7 @@
Logo

- Latest stable version: 3.4.2        Current pre-release: 3.4.3 (2024/10/09) + Latest stable version: 3.4.3 (2024/10/11)