Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(80960)

Unified Diff: Modules/unicodedata.c

Issue 29456: bug in unicodedata.normalize: u1176
Patch Set: Created 2 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Modules/unicodedata.c Sun Feb 05 22:58:46 2017 +0200
+++ b/Modules/unicodedata.c Mon Feb 06 14:43:29 2017 +0900
@@ -688,8 +688,8 @@
code = SBase + (LIndex*VCount+VIndex)*TCount;
i+=2;
if (i < len &&
- TBase <= PyUnicode_READ(kind, data, i) &&
- PyUnicode_READ(kind, data, i) <= (TBase+TCount)) {
+ TBase < PyUnicode_READ(kind, data, i) &&
+ PyUnicode_READ(kind, data, i) < (TBase+TCount)) {
code += PyUnicode_READ(kind, data, i)-TBase;
i++;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+