projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c609689
)
Fix SF bug #694816, remove comparison of unsigned value < 0
author
Neal Norwitz
<nnorwitz@gmail.com>
Fri, 28 Feb 2003 03:14:37 +0000
(
03:14
+0000)
committer
Neal Norwitz
<nnorwitz@gmail.com>
Fri, 28 Feb 2003 03:14:37 +0000
(
03:14
+0000)
Modules/unicodedata.c
patch
|
blob
|
history
diff --git
a/Modules/unicodedata.c
b/Modules/unicodedata.c
index e8f9c19d2684c2fa2b5425dedf9b89da2755ea1c..d266ad7e0b49b8a98ad3455c2744e979d1e3b7a2 100644
(file)
--- a/
Modules/unicodedata.c
+++ b/
Modules/unicodedata.c
@@
-33,7
+33,7
@@
static const _PyUnicode_DatabaseRecord*
_getrecord_ex(Py_UCS4 code)
{
int index;
- if (code
< 0 || code
>= 0x110000)
+ if (code >= 0x110000)
index = 0;
else {
index = index1[(code>>SHIFT)];
@@
-258,7
+258,7
@@
unicodedata_decomposition(PyObject *self, PyObject *args)
void
get_decomp_record(Py_UCS4 code, int *index, int *prefix, int *count)
{
- if (code
< 0 || code
>= 0x110000) {
+ if (code >= 0x110000) {
*index = 0;
}
else {