diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-05-27 08:36:52 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-05-27 08:36:52 (GMT) |
commit | d004fc810af3e1985686e616763e14a1b0aa60c1 (patch) | |
tree | 84d813c5639518d647144fb8befbfcb524052175 /Modules | |
parent | d1b6cd7bfb35ffecd8b52d9d2b3cd608ab6515e0 (diff) | |
download | cpython-d004fc810af3e1985686e616763e14a1b0aa60c1.zip cpython-d004fc810af3e1985686e616763e14a1b0aa60c1.tar.gz cpython-d004fc810af3e1985686e616763e14a1b0aa60c1.tar.bz2 |
Patch 1494554: Update numeric properties to Unicode 4.1.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/unicodedata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index 297611c..0660353 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c @@ -209,7 +209,7 @@ unicodedata_numeric(PyObject *self, PyObject *args) if (old->category_changed == 0) { /* unassigned */ have_old = 1; - rc = -1; + rc = -1.0; } else if (old->decimal_changed != 0xFF) { have_old = 1; @@ -219,7 +219,7 @@ unicodedata_numeric(PyObject *self, PyObject *args) if (!have_old) rc = Py_UNICODE_TONUMERIC(*PyUnicode_AS_UNICODE(v)); - if (rc < 0) { + if (rc == -1.0) { if (defobj == NULL) { PyErr_SetString(PyExc_ValueError, "not a numeric character"); return NULL; |