Skip to content

Commit bae0234

Browse files
skirpichevpicnixz
andauthored
Apply suggestions from code review
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 7f0061f commit bae0234

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Convert the :mod:`decimal` module to use :pep:`757` C API (export-import
2-
integers). That offer some speedup, if integer part of the
2+
integers). That offer some speedup, if the integer part of the
33
:class:`~decimal.Decimal` instance is small. Patch by Sergey B Kirpichev.

Modules/_decimal/_decimal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2335,7 +2335,7 @@ dec_from_long(decimal_state *state, PyTypeObject *type, PyObject *v,
23352335
return NULL;
23362336
}
23372337
if (export_long.digits) {
2338-
const uint8_t sign = export_long.negative ? MPD_NEG : MPD_POS;
2338+
const uint8_t sign = export_long.negative ? MPD_NEG : MPD_POS;
23392339
const Py_ssize_t len = export_long.ndigits;
23402340

23412341
#if PYLONG_BITS_IN_DIGIT == 30

0 commit comments

Comments
 (0)