Skip to content

Commit

Permalink
_cimg_math_parser: fix wrong index when accessing predefined variable…
Browse files Browse the repository at this point in the history
…s i0...i9.
  • Loading branch information
dtschump committed Aug 25, 2020
1 parent 5d4a9f2 commit be4ac64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CImg.h
Original file line number Diff line number Diff line change
Expand Up @@ -17083,7 +17083,7 @@ namespace cimg_library_suffixed {
pos = 20 + *ss1 - '0';
if (reserved_label[pos]!=~0U) _cimg_mp_return(reserved_label[pos]);
need_input_copy = true;
_cimg_mp_scalar6(mp_ixyzc,_cimg_mp_slot_x,_cimg_mp_slot_y,_cimg_mp_slot_z,pos - 19,0,0);
_cimg_mp_scalar6(mp_ixyzc,_cimg_mp_slot_x,_cimg_mp_slot_y,_cimg_mp_slot_z,pos - 20,0,0);
}
switch (*ss1) {
case 'm' : arg1 = 4; arg2 = 0; break; // im
Expand Down

0 comments on commit be4ac64

Please sign in to comment.