| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3439,14 +3439,14 @@ dec_as_integer_ratio(PyObject *self, PyObject *args UNUSED) | |||
| 3439 | 3439 | goto error; | |
| 3440 | 3440 | } | |
| 3441 | 3441 | ||
| 3442 | - Py_XSETREF(exponent, long_methods->nb_power(tmp, exponent, Py_None)); | ||
| 3442 | + Py_SETREF(exponent, long_methods->nb_power(tmp, exponent, Py_None)); | ||
| 3443 | 3443 | Py_DECREF(tmp); | |
| 3444 | 3444 | if (exponent == NULL) { | |
| 3445 | 3445 | goto error; | |
| 3446 | 3446 | } | |
| 3447 | 3447 | ||
| 3448 | 3448 | if (exp >= 0) { | |
| 3449 | - Py_XSETREF(numerator, long_methods->nb_multiply(numerator, exponent)); | ||
| 3449 | + Py_SETREF(numerator, long_methods->nb_multiply(numerator, exponent)); | ||
| 3450 | 3450 | if (numerator == NULL) { | |
| 3451 | 3451 | goto error; | |
| 3452 | 3452 | } | |
@@ -3462,8 +3462,8 @@ dec_as_integer_ratio(PyObject *self, PyObject *args UNUSED) | |||
| 3462 | 3462 | if (tmp == NULL) { | |
| 3463 | 3463 | goto error; | |
| 3464 | 3464 | } | |
| 3465 | - Py_XSETREF(numerator, long_methods->nb_floor_divide(numerator, tmp)); | ||
| 3466 | - Py_XSETREF(denominator, long_methods->nb_floor_divide(denominator, tmp)); | ||
| 3465 | + Py_SETREF(numerator, long_methods->nb_floor_divide(numerator, tmp)); | ||
| 3466 | + Py_SETREF(denominator, long_methods->nb_floor_divide(denominator, tmp)); | ||
| 3467 | 3467 | Py_DECREF(tmp); | |
| 3468 | 3468 | if (numerator == NULL || denominator == NULL) { | |
| 3469 | 3469 | goto error; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -294,9 +294,9 @@ partial_setstate(partialobject *pto, PyObject *state) | |||
| 294 | 294 | else | |
| 295 | 295 | Py_INCREF(dict); | |
| 296 | 296 | ||
| 297 | - Py_XSETREF(pto->fn, fn); | ||
| 298 | - Py_XSETREF(pto->args, fnargs); | ||
| 299 | - Py_XSETREF(pto->kw, kw); | ||
| 297 | + Py_SETREF(pto->fn, fn); | ||
| 298 | + Py_SETREF(pto->args, fnargs); | ||
| 299 | + Py_SETREF(pto->kw, kw); | ||
| 300 | 300 | Py_XSETREF(pto->dict, dict); | |
| 301 | 301 | Py_RETURN_NONE; | |
| 302 | 302 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1494,13 +1494,13 @@ float_as_integer_ratio(PyObject *v, PyObject *unused) | |||
| 1494 | 1494 | ||
| 1495 | 1495 | /* fold in 2**exponent */ | |
| 1496 | 1496 | if (exponent > 0) { | |
| 1497 | - Py_XSETREF(numerator, | ||
| 1497 | + Py_SETREF(numerator, | ||
| 1498 | 1498 | long_methods->nb_lshift(numerator, py_exponent)); | |
| 1499 | 1499 | if (numerator == NULL) | |
| 1500 | 1500 | goto error; | |
| 1501 | 1501 | } | |
| 1502 | 1502 | else { | |
| 1503 | - Py_XSETREF(denominator, | ||
| 1503 | + Py_SETREF(denominator, | ||
| 1504 | 1504 | long_methods->nb_lshift(denominator, py_exponent)); | |
| 1505 | 1505 | if (denominator == NULL) | |
| 1506 | 1506 | goto error; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments