Remove unneeded checks on type lengths.
[deliverable/binutils-gdb.git] / gdb / v850-tdep.c
index 612eec33fa87bff5417cb1755c9d615230ff6db0..0b50580f7c2479ab44ab4c13ec353e844b118f6a 100644 (file)
@@ -559,7 +559,7 @@ v850_use_struct_convention (struct gdbarch *gdbarch, struct type *type)
          if (TYPE_CODE (fld_type) == TYPE_CODE_ARRAY)
            {
              tgt_type = TYPE_TARGET_TYPE (fld_type);
-             if (TYPE_LENGTH (fld_type) >= 0 && TYPE_LENGTH (tgt_type) >= 0
+             if (TYPE_LENGTH (tgt_type) > 0
                  && TYPE_LENGTH (fld_type) / TYPE_LENGTH (tgt_type) > 2)
                return 1;
            }
This page took 0.025884 seconds and 4 git commands to generate.