Commit bedbe35d authored by Icecream95's avatar Icecream95 Committed by Marge Bot
Browse files

pan/gen_pack: Use 1U for unpacking log2 to avoid undefined behaviour

Part-of: <mesa/mesa!11869>
parent 04c02418
......@@ -613,7 +613,7 @@ class Group(object):
elif field.modifier[0] == "shr":
suffix = " << {}".format(field.modifier[1])
if field.modifier[0] == "log2":
prefix = "1 << "
prefix = "1U << "
decoded = '{}{}({}){}'.format(prefix, convert, ', '.join(args), suffix)
......
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