summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-11-07 22:54:37 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-11-07 22:54:37 (GMT)
commitd2d3aa20382339495c4e26522abc5db1a77fd0b2 (patch)
tree220736e64bff3a87c65dbfb7d83371e270804151 /Modules
parentfc55bb1cc53b62cc461827755edf2be6cb07d636 (diff)
parented16eff57eaf5c89057f8da6328785fd887c01df (diff)
downloadcpython-d2d3aa20382339495c4e26522abc5db1a77fd0b2.zip
cpython-d2d3aa20382339495c4e26522abc5db1a77fd0b2.tar.gz
cpython-d2d3aa20382339495c4e26522abc5db1a77fd0b2.tar.bz2
Merge 3.3.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_decimal/_decimal.c2
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;
}