We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87072d6 commit 7bcdde0Copy full SHA for 7bcdde0
discrete/include/integer_pow.hxx
@@ -25,7 +25,7 @@
25
26
template <std::integral I>
27
I int_pow(I base, I exp) {
28
- if constexpr (I(-1) < 0 && exp < 0) return 0;
+ if constexpr (I(-1) < 0) if (exp < 0) return 0;
29
30
if (!exp) return 1;
31
0 commit comments