* 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:
Pierre Muller
2010-06-03 06:50:49 +00:00
parent 416a7ddd02
commit df17845119
5 changed files with 32 additions and 39 deletions

View File

@@ -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;
}