mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2026-01-07 06:57:10 +00:00
demarshall: add missing parens in BE read_xxx functions
The missing parens causes build to fail on big-endian machines
This commit is contained in:
parent
534d35cc32
commit
725b5a9b53
@ -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]:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user