projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
I was annoyed by the compiler warnings about implicit conversions.
[libfirm]
/
scripts
/
gen_ir_io.py
diff --git
a/scripts/gen_ir_io.py
b/scripts/gen_ir_io.py
index
d685b96
..
781ee46
100755
(executable)
--- a/
scripts/gen_ir_io.py
+++ b/
scripts/gen_ir_io.py
@@
-79,6
+79,9
@@
def get_io_type(type, attrname, node):
elif type == "int":
importcmd = "int %s = (int) read_long(env);" % attrname
exportcmd = """fprintf(env->file, "%%d ", %(val)s);"""
elif type == "int":
importcmd = "int %s = (int) read_long(env);" % attrname
exportcmd = """fprintf(env->file, "%%d ", %(val)s);"""
+ elif type == "unsigned":
+ importcmd = "unsigned %s = (unsigned) read_long(env);" % attrname
+ exportcmd = """fprintf(env->file, "%%u ", %(val)s);"""
elif type == "long":
importcmd = "long %s = read_long(env);" % attrname
exportcmd = """fprintf(env->file, "%%ld ", %(val)s);"""
elif type == "long":
importcmd = "long %s = read_long(env);" % attrname
exportcmd = """fprintf(env->file, "%%ld ", %(val)s);"""