Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtschump committed Jan 29, 2024
2 parents bc9ee24 + 78d16fe commit 371ace2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CImg.h
Original file line number Diff line number Diff line change
Expand Up @@ -18040,7 +18040,8 @@ namespace cimg_library {

// Check for particular case to be simplified.
if ((op==mp_self_add || op==mp_self_sub) && !arg2) _cimg_mp_return(arg1);
if ((op==mp_self_mul || op==mp_self_div) && arg2==1) _cimg_mp_return(arg1);
if ((op==mp_self_mul || op==mp_self_div || op==mp_self_pow) && arg2==1) _cimg_mp_return(arg1);
if (op==mp_self_pow) { CImg<ulongT>::vector((ulongT)mp_copy,arg1,1).move_to(code); _cimg_mp_return(arg1); }

// Apply operator on a copy to prevent modifying a constant or a variable.
if (*ref && (_cimg_mp_is_const_scalar(arg1) || _cimg_mp_is_vector(arg1) || _cimg_mp_is_reserved(arg1)))
Expand Down
2 changes: 1 addition & 1 deletion html/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div class="header">
<a href="index.html"><img alt="Logo" src="img/logo_header.jpg" class="center_image" style="margin-top:1em;"/></a>
<h2 style="padding-bottom: 1em">
Latest stable version: <b><a href="http://cimg.eu/files/CImg_.zip">3.3.3</a></b>
Latest stable version: <b><a href="http://cimg.eu/files/CImg_.zip">3.3.3</a></b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Current pre-release: <b><a href="http://cimg.eu/files/CImg_latest.zip">3.3.4</a></b> (2024/01/29)
</h2>

<hr/>
Expand Down
2 changes: 1 addition & 1 deletion html/header_doxygen.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="header">
<a href="../index.html"><img alt="Logo" src="../img/logo_header.jpg" class="center_image" style="margin-top:1em;"/></a>
<h2 style="padding-bottom: 1em">
Latest stable version: <b><a href="http://cimg.eu/files/CImg_.zip">3.3.3</a></b>
Latest stable version: <b><a href="http://cimg.eu/files/CImg_.zip">3.3.3</a></b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Current pre-release: <b><a href="http://cimg.eu/files/CImg_latest.zip">3.3.4</a></b> (2024/01/29)
</h2>

<hr/>
Expand Down

0 comments on commit 371ace2

Please sign in to comment.