gdbtypes: return value from get_unsigned_type_max
authorGeorge Barrett <bob@bob131.so>
Thu, 29 Jul 2021 15:12:03 +0000 (01:12 +1000)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 29 Jul 2021 16:54:14 +0000 (12:54 -0400)
commitc3c1e6459f89167fc01de9376c6b34574d710278
tree9887eca9da6342468431adc210fe7e88e9dd473e
parentcd026728f3bcba878293f9c38f8760512755ed73
gdbtypes: return value from get_unsigned_type_max

Changes the signature of get_unsigned_type_max to return the computed
value rather than returning void and writing the value into a pointer
passed by the caller.

gdb/ChangeLog:

2021-07-30  George Barrett  <bob@bob131.so>

* gdbtypes.h (get_unsigned_type_max): Change signature to
return the result instead of accepting a pointer argument in
which to store the result.
* gdbtypes.c (get_unsigned_type_max): Likewise.
* guile/scm-math.c (vlscm_convert_typed_number): Update caller
of get_unsigned_type_max.
(vlscm_integer_fits_p): Likewise.

Change-Id: Ibb1bf0c0fa181fac7853147dfde082a7d1ae2323
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/guile/scm-math.c