Skip to content

Commit

Permalink
math_parser(): Fix function 'shift()' to not modify its argument vector.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtschump committed May 1, 2024
1 parent 434d5d2 commit fc579c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CImg.h
Original file line number Diff line number Diff line change
Expand Up @@ -28290,7 +28290,8 @@ namespace cimg_library {
const int
shift = (int)_mp_arg(4),
boundary_conditions = (int)_mp_arg(5);
CImg<doubleT>(ptrd,siz,1,1,1,true) = CImg<doubleT>(ptrs,siz,1,1,1,true).shift(shift,0,0,0,boundary_conditions);
CImg<doubleT>(ptrd,siz,1,1,1,true) =
CImg<doubleT>(ptrs,siz,1,1,1,true).get_shift(shift,0,0,0,boundary_conditions);
return cimg::type<double>::nan();
}

Expand Down

0 comments on commit fc579c6

Please sign in to comment.