Skip to content

Commit 3381ddc

Browse files
committed
address review: drop const (seems wrong for me)
1 parent 3b09d23 commit 3381ddc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Modules/_decimal/_decimal.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,9 +2336,9 @@ dec_from_long(decimal_state *state, PyTypeObject *type, PyObject *v,
23362336
}
23372337
if (export_long.digits) {
23382338
const PyLongLayout *layout = PyLong_GetNativeLayout();
2339-
const uint32_t base = (uint32_t)1 << layout->bits_per_digit;
2340-
const uint8_t sign = export_long.negative ? MPD_NEG : MPD_POS;
2341-
const Py_ssize_t len = export_long.ndigits;
2339+
uint32_t base = (uint32_t)1 << layout->bits_per_digit;
2340+
uint8_t sign = export_long.negative ? MPD_NEG : MPD_POS;
2341+
Py_ssize_t len = export_long.ndigits;
23422342

23432343
assert(layout->bits_per_digit <= 32);
23442344
assert(layout->digits_order == -1);
@@ -2356,7 +2356,7 @@ dec_from_long(decimal_state *state, PyTypeObject *type, PyObject *v,
23562356
PyLong_FreeExport(&export_long);
23572357
}
23582358
else {
2359-
const int64_t value = export_long.value;
2359+
int64_t value = export_long.value;
23602360

23612361
if (-(int64_t)UINT32_MAX <= value && value <= (int64_t)UINT32_MAX) {
23622362
_dec_settriple(dec, value < 0 ? MPD_NEG : MPD_POS,

0 commit comments

Comments
 (0)