#7112: Fix compilation warning in unicodetype_db.h

makeunicodedata now generates double literals
This commit is contained in:
Amaury Forgeot d'Arc 2009-10-13 21:29:34 +00:00
parent 5ffa146fde
commit 5c92d4301d
2 changed files with 114 additions and 109 deletions

View file

@ -468,6 +468,11 @@ def makeunicodetype(unicode, trace):
print >>fp, '{'
print >>fp, ' switch (ch) {'
for value, codepoints in numeric_items:
# Turn text into float literals
parts = value.split('/')
parts = [repr(float(part)) for part in parts]
value = '/'.join(parts)
haswide = False
hasnonewide = False
codepoints.sort()