gdb: make get_array_bounds return bool
Obvious change from int to bool. I took the opportunity to move the doc to the header file. gdb/ChangeLog: * gdbtypes.h (get_array_bounds): Return bool, adjust some callers. Move doc here. * gdbtypes.c (get_array_bounds): Return bool Change-Id: I8ed20298cb0927963c1f09b345966533d5ed06e2
This commit is contained in:
parent
3d955acb36
commit
584903d3f5
5 changed files with 22 additions and 14 deletions
|
@ -491,7 +491,7 @@ compile_cplus_convert_array (compile_cplus_instance *instance,
|
|||
{
|
||||
LONGEST low_bound, high_bound, count;
|
||||
|
||||
if (get_array_bounds (type, &low_bound, &high_bound) == 0)
|
||||
if (!get_array_bounds (type, &low_bound, &high_bound))
|
||||
count = -1;
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue