diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-04-06 15:25:34 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2012-04-06 15:32:02 +0200 |
commit | 39fef7a5da43e1a5b9a47319f97f42f81f442ba5 (patch) | |
tree | cb53f8eeeb8a68f786830682d372f5f8d115e5fb | |
parent | e96dbb4172ec7a47a5b15d3b9e921e12623fddaa (diff) |
demarshall: add missing parens in BE read_xxx functions
The missing parens causes build to fail on big-endian machines
-rw-r--r-- | python_modules/demarshal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python_modules/demarshal.py b/python_modules/demarshal.py index c8c6837..cf48d74 100644 --- a/python_modules/demarshal.py +++ b/python_modules/demarshal.py @@ -50,7 +50,7 @@ def write_parser_helpers(writer): writer.macro("read_%s" % type, "ptr", "(*((%s_t *)(ptr)))" % type) writer.macro("write_%s" % type, "ptr, val", "*(%s_t *)(ptr) = val" % (type)) else: - writer.macro("read_%s" % type, "ptr", "((%s_t)%s(*((%s_t *)(ptr)))" % (type, swap, utype)) + writer.macro("read_%s" % type, "ptr", "((%s_t)%s(*((%s_t *)(ptr))))" % (type, swap, utype)) writer.macro("write_%s" % type, "ptr, val", "*(%s_t *)(ptr) = %s((%s_t)val)" % (utype, swap, utype)) writer.writeln("#else") for size in [8, 16, 32, 64]: |