gdb/
[deliverable/binutils-gdb.git] / gdb / valops.c
index 5232e3fbc74d6c4107b713d02f37f9ae1e5dfa38..2dc237a7740bea9db154d9cf716f4329cf668f92 100644 (file)
@@ -361,8 +361,7 @@ value_cast (struct type *type, struct value *arg2)
     {
       struct type *element_type = TYPE_TARGET_TYPE (type);
       unsigned element_length = TYPE_LENGTH (check_typedef (element_type));
-      if (element_length > 0
-       && TYPE_ARRAY_UPPER_BOUND_TYPE (type) == BOUND_CANNOT_BE_DETERMINED)
+      if (element_length > 0 && TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED (type))
        {
          struct type *range_type = TYPE_INDEX_TYPE (type);
          int val_length = TYPE_LENGTH (type2);
This page took 0.024116 seconds and 4 git commands to generate.