File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Original file line number Diff line number Diff line change @@ -2935,7 +2935,8 @@ math_pow_impl(PyObject *module, double x, double y)
2935
2935
else /* y < 0. */
2936
2936
r = odd_y ? copysign (0. , x ) : 0. ;
2937
2937
}
2938
- else { /* Py_IS_INFINITY(y) */
2938
+ else {
2939
+ assert (Py_IS_INFINITY (y ));
2939
2940
if (fabs (x ) == 1.0 )
2940
2941
r = 1. ;
2941
2942
else if (y > 0. && fabs (x ) > 1.0 )
@@ -3465,6 +3466,8 @@ static const uint8_t factorial_trailing_zeros[] = {
3465
3466
static PyObject *
3466
3467
perm_comb_small (unsigned long long n , unsigned long long k , int iscomb )
3467
3468
{
3469
+ assert (k != 0 );
3470
+
3468
3471
/* For small enough n and k the result fits in the 64-bit range and can
3469
3472
* be calculated without allocating intermediate PyLong objects. */
3470
3473
if (iscomb ) {
You can’t perform that action at this time.
0 commit comments