Skip to content

Commit

Permalink
Update deps/src/singular.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Max Horn <max@quendi.de>
  • Loading branch information
hannes14 and fingolfin committed Jun 17, 2024
1 parent 7f18e68 commit b164106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/src/singular.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ JLCXX_MODULE define_julia_module(jlcxx::Module & Singular)
return old_value;
});
// all of the global setters return the previous value
Singular.method("set_option", [](std::string opt, bool value, ring r) {
Singular.method("set_option", [](std::string opt, bool value, ring r == NULL) {
bool old_value = false;
ring oldring=currRing;
if (r!=NULL) rChangeCurrRing(r);
Expand Down

0 comments on commit b164106

Please sign in to comment.