Commit 5c92d430 authored by Amaury Forgeot d'Arc's avatar Amaury Forgeot d'Arc

#7112: Fix compilation warning in unicodetype_db.h

makeunicodedata now generates double literals
parent 5ffa146f
This diff is collapsed.
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment