Skip to content

Commit

Permalink
+1
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Sep 18, 2024
1 parent 676696e commit 4e4f98b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pythoncapi_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ PyLong_Export(PyObject *obj, PyLongExport *export_long)
}
else {
export_long->value = 0;
export_long->negative = _PyLong_Sign(self) < 0;
export_long->negative = _PyLong_Sign(obj) < 0;
export_long->ndigits = _PyLong_DigitCount(self);
if (export_long->ndigits == 0) {
export_long->ndigits = 1;
Expand Down

0 comments on commit 4e4f98b

Please sign in to comment.