aboutsummaryrefslogtreecommitdiff
path: root/gdb/bfin-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/bfin-tdep.c')
-rw-r--r--gdb/bfin-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/bfin-tdep.c b/gdb/bfin-tdep.c
index 6d4859a..4eb5763 100644
--- a/gdb/bfin-tdep.c
+++ b/gdb/bfin-tdep.c
@@ -615,7 +615,7 @@ bfin_extract_return_value (struct type *type,
ULONGEST tmp;
int regno = BFIN_R0_REGNUM;
- gdb_assert (TYPE_LENGTH (type) <= 8);
+ gdb_assert (len <= 8);
while (len > 0)
{
@@ -643,7 +643,7 @@ bfin_store_return_value (struct type *type,
int len = TYPE_LENGTH (type);
int regno = BFIN_R0_REGNUM;
- gdb_assert (TYPE_LENGTH (type) <= 8);
+ gdb_assert (len <= 8);
while (len > 0)
{