commit | 5363deffcfb1c1825db3a8446d377a0ad56eff70 | [log] [tgz] |
---|---|---|
author | Tom Tromey <tromey@adacore.com> | Thu Mar 20 09:52:08 2025 -0600 |
committer | Tom Tromey <tromey@adacore.com> | Thu Apr 24 13:25:08 2025 -0600 |
tree | 1f31f7c17cac9e0d1d041c02b4ac6c30105ef9ac | |
parent | c2de2f7ed5904c1f8fdca596536616f71c5d2521 [diff] |
Use correct sign extension for enumeration types This changes update_enumeration_type_from_children to use the correct sign-extension method on the attribute. The logic here is a bit complicated: if the enum has an underlying type, then we use that type's signed-ness to interpret attributes; otherwise we must assume attributes are encoded as signed values. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32680