diff options
author | Stefan Krah <skrah@bytereef.org> | 2012-11-07 22:54:37 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2012-11-07 22:54:37 (GMT) |
commit | d2d3aa20382339495c4e26522abc5db1a77fd0b2 (patch) | |
tree | 220736e64bff3a87c65dbfb7d83371e270804151 /Modules | |
parent | fc55bb1cc53b62cc461827755edf2be6cb07d636 (diff) | |
parent | ed16eff57eaf5c89057f8da6328785fd887c01df (diff) | |
download | cpython-d2d3aa20382339495c4e26522abc5db1a77fd0b2.zip cpython-d2d3aa20382339495c4e26522abc5db1a77fd0b2.tar.gz cpython-d2d3aa20382339495c4e26522abc5db1a77fd0b2.tar.bz2 |
Merge 3.3.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_decimal/_decimal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c index 0bc484f..0e1d304 100644 --- a/Modules/_decimal/_decimal.c +++ b/Modules/_decimal/_decimal.c @@ -2345,7 +2345,7 @@ PyDecType_FromDecimalExact(PyTypeObject *type, PyObject *v, PyObject *context) PyObject *dec; uint32_t status = 0; - if (type == &PyDec_Type) { + if (type == Py_TYPE(v)) { Py_INCREF(v); return v; } |