Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtschump committed Aug 17, 2021
1 parent 96114de commit b33dcc8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CImg.h
Original file line number Diff line number Diff line change
Expand Up @@ -28519,7 +28519,7 @@ namespace cimg_library_suffixed {
case '>' : res = (t)(val1>val2); is_success = true; break;
case '<' : res = (t)(val1<val2); is_success = true; break;
case ';' : res = (t)val2; is_success = true; break;
// case '^' : res = (t)c=='+'?val:c=='-'?std::pow(val,val2); is_success = true; break;
case '^' : val = std::pow(val,val2); res = (t)(c=='+'?val:c=='-'?-val:!val); is_success = true; break;
}
}
} else if (!expression[1]) switch (*expression) { // Other common single-char expressions
Expand All @@ -28529,9 +28529,6 @@ namespace cimg_library_suffixed {
case 's' : res = (t)_spectrum; is_success = true; break;
case 'r' : res = (t)_is_shared; is_success = true; break;
}

if (is_success) std::fprintf(stderr,"\nDEBUG : Optimize '%s' -> %g",expression,res);

return is_success;
}

Expand Down

0 comments on commit b33dcc8

Please sign in to comment.