Commit dd4cd761 authored by Matthias Braun's avatar Matthias Braun
Browse files

convert bitfield initializer tarvals before using them

[r22441]
parent f6c661bb
......@@ -816,6 +816,7 @@ static void dump_bitfield(normal_or_bitfield *vals, size_t offset_bits,
if (tv == NULL) {
panic("Couldn't get numeric value for bitfield initializer");
}
tv = tarval_convert_to(tv, get_type_mode(type));
/* normalize offset */
vals += offset_bits >> 3;
......
Supports Markdown
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