]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/ada-valprint.c
* valprint.h (get_array_bounds): Change low and high parameter types
[thirdparty/binutils-gdb.git] / gdb / ada-valprint.c
index c56d221bc44e0842ef38738fa792b3e2fce5b58b..7e93e3aa5331a19ba753813f9e1ca03a53ee7aee 100644 (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;
 }