Sync config.sub,config.guess with upstream.
[deliverable/binutils-gdb.git] / gdb / valarith.c
index 254d99838a9e03fd57041a50571507147fb882a0..de6fcfd79abb2f3b6a1b341c36736ac949826cf3 100644 (file)
@@ -192,8 +192,8 @@ value_subscripted_rvalue (struct value *array, LONGEST index, int lowerbound)
 {
   struct type *array_type = check_typedef (value_type (array));
   struct type *elt_type = check_typedef (TYPE_TARGET_TYPE (array_type));
-  unsigned int elt_size = type_length_units (elt_type);
-  unsigned int elt_offs = elt_size * longest_to_int (index - lowerbound);
+  ULONGEST elt_size = type_length_units (elt_type);
+  ULONGEST elt_offs = elt_size * (index - lowerbound);
   struct value *v;
 
   if (index < lowerbound || (!TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED (array_type)
This page took 0.025061 seconds and 4 git commands to generate.