Skip to content

Commit 2ff7b3c

Browse files
committed
polynomial: fix pow ambiguity
1 parent 4a8313b commit 2ff7b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/jlpolymake/containers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ struct WrapPolynomialBase
624624
wrapped.method("_add", [](const WrappedT& a, const WrappedT& b) { return a + b; });
625625
wrapped.method("_sub", [](const WrappedT& a, const WrappedT& b) { return a - b; });
626626
wrapped.method("_mul", [](const WrappedT& a, const WrappedT& b) { return a * b; });
627-
wrapped.method("^", [](const WrappedT& a, int64_t b) { return a ^ b; });
627+
wrapped.method("^", [](const WrappedT& a, int64_t b) { return a ^ static_cast<pm::Int>(b); });
628628
wrapped.method("/", [](const WrappedT& a, const coeffT& c) { return a / c; });
629629
wrapped.method("coefficients_as_vector", &WrappedT::coefficients_as_vector);
630630
wrapped.method("set_var_names", [](const WrappedT& a, const Array<std::string>& names) { a.set_var_names(names); });

0 commit comments

Comments
 (0)