Skip to content

Commit 7bcdde0

Browse files
Update integer_pow.hxx
1 parent 87072d6 commit 7bcdde0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discrete/include/integer_pow.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
template <std::integral I>
2727
I int_pow(I base, I exp) {
28-
if constexpr (I(-1) < 0 && exp < 0) return 0;
28+
if constexpr (I(-1) < 0) if (exp < 0) return 0;
2929

3030
if (!exp) return 1;
3131

0 commit comments

Comments
 (0)