https://bugs.webkit.org/show_bug.cgi?id=83672
Reviewed by Kentaro Hara.
* make-file-arrays.py:
(main): Do not generate literal integers larger than 127 for
members of char arrays. Use '\xHH' instead.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113838
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-04-11 Kent Tamura <tkent@chromium.org>
+
+ Fix compiler warnings for generated CalendarPicker.cpp with VC++
+ https://bugs.webkit.org/show_bug.cgi?id=83672
+
+ Reviewed by Kentaro Hara.
+
+ * make-file-arrays.py:
+ (main): Do not generate literal integers larger than 127 for
+ members of char arrays. Use '\xHH' instead.
+
2012-04-11 Pavel Feldman <pfeldman@chromium.org>
Web Inspector: fix category -> type refactoring implications.
header_file.write("extern const char %s[%d];\n" % (variable_name, size))
cpp_file.write("const char %s[%d] = {\n" % (variable_name, size))
for index in range(size):
- cpp_file.write("%d" % ord(content[index]))
+ char_code = ord(content[index])
+ if char_code < 128:
+ cpp_file.write("%d" % char_code)
+ else:
+ cpp_file.write("'\\x%02x'" % char_code)
cpp_file.write("," if index != len(content) - 1 else "};\n")
if index % 20 == 19:
cpp_file.write("\n")