aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-03-01 12:23:43 -0700
committerTom Tromey <tromey@adacore.com>2023-03-27 08:20:29 -0600
commitd784fa8fb2936fb9bd2ebb8e1854b855ca206d96 (patch)
treec5258684190d55db1c03cae6d60162a6a6f45413 /contrib
parenteb52a49702abe3d279cf9eba9291e08bc6b2d9dc (diff)
downloadgdb-d784fa8fb2936fb9bd2ebb8e1854b855ca206d96.zip
gdb-d784fa8fb2936fb9bd2ebb8e1854b855ca206d96.tar.gz
gdb-d784fa8fb2936fb9bd2ebb8e1854b855ca206d96.tar.bz2
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.
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions