forked from Imagelibrary/binutils-gdb
* valprint.h (get_array_bounds): Change low and high parameter types
to LONGEST *. * valprint.c (get_array_bounds): Use get_discrete_bounds call to compute bounds. (val_print_array_elements): Adapt to change above. * ada-valprint.c (print_optional_low_bound): Adapt to change above. * p-valprint.c (pascal_val_print): Likewise.
This commit is contained in:
@@ -85,8 +85,8 @@ print_optional_low_bound (struct ui_file *stream, struct type *type,
|
||||
const struct value_print_options *options)
|
||||
{
|
||||
struct type *index_type;
|
||||
long low_bound;
|
||||
long high_bound;
|
||||
LONGEST low_bound;
|
||||
LONGEST high_bound;
|
||||
|
||||
if (options->print_array_indexes)
|
||||
return 0;
|
||||
@@ -131,7 +131,7 @@ print_optional_low_bound (struct ui_file *stream, struct type *type,
|
||||
break;
|
||||
}
|
||||
|
||||
ada_print_scalar (index_type, (LONGEST) low_bound, stream);
|
||||
ada_print_scalar (index_type, low_bound, stream);
|
||||
fprintf_filtered (stream, " => ");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user