[Python-checkins] cpython: Use the MPD() accessor macro.

stefan.krah python-checkins at python.org
Mon Apr 9 20:32:44 CEST 2012


http://hg.python.org/cpython/rev/435b21afc6fa
changeset: 76182:435b21afc6fa
user: Stefan Krah <skrah at bytereef.org>
date: Mon Apr 09 19:20:46 2012 +0200
summary:
 Use the MPD() accessor macro.
files:
 Modules/_decimal/_decimal.c | 4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c
--- a/Modules/_decimal/_decimal.c
+++ b/Modules/_decimal/_decimal.c
@@ -3745,9 +3745,9 @@
 }
 
 static int
-nm_nonzero(PyDecObject *v)
+nm_nonzero(PyObject *v)
 {
- return !mpd_iszero(v->dec);
+ return !mpd_iszero(MPD(v));
 }
 
 static PyObject *
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /