Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 94ef3e4

Browse files
author
Stefan Krah
committed
Use the MPD() accessor macro.
1 parent b547d39 commit 94ef3e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_decimal/_decimal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3745,9 +3745,9 @@ nm_dec_as_long(PyObject *dec)
37453745
}
37463746

37473747
static int
3748-
nm_nonzero(PyDecObject *v)
3748+
nm_nonzero(PyObject *v)
37493749
{
3750-
return !mpd_iszero(v->dec);
3750+
return !mpd_iszero(MPD(v));
37513751
}
37523752

37533753
static PyObject *

0 commit comments

Comments
 (0)