| commit | d784fa8fb2936fb9bd2ebb8e1854b855ca206d96 | [log] [tgz] |
|---|---|---|
| author | Tom Tromey <tromey@adacore.com> | Wed Mar 01 12:23:43 2023 -0700 |
| committer | Tom Tromey <tromey@adacore.com> | Mon Mar 27 08:20:29 2023 -0600 |
| tree | c5258684190d55db1c03cae6d60162a6a6f45413 | |
| parent | eb52a49702abe3d279cf9eba9291e08bc6b2d9dc [diff] |
Use value_true in value_equal and value_less Both value_equal and value_less use value_as_long to check a presumably boolean result of calling value_binop. However, value_binop in this case actually returns an int as wide as its arguments, and this approach can then fail for integers wider than LONGEST. Instead, rewrite this in a form that works for any size integer.