commit | 79a0742380b5304c734ce6f4359d437325cc7121 | [log] [tgz] |
---|---|---|
author | Tom Tromey <tromey@adacore.com> | Thu Mar 10 09:23:45 2022 -0700 |
committer | Tom Tromey <tromey@adacore.com> | Mon Mar 14 06:58:12 2022 -0600 |
tree | e3184cf4db3b81553d449cd4c4dc100633b80348 | |
parent | bab22d0640914384d467e09c3e796585fd08e7c6 [diff] |
Correctly print subrange types in generic_value_print I noticed that generic_value_print assumes that a subrange type is always a subrange of an integer type. However, this isn't necessarily the case. In Ada, for example, one has subranges of character and enumeration types. This code isn't often exercised, I think, because languages with real subrange types tend to implement their own printers. However, it still seemed worth fixing.