mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
2000-07-20 Michael Snyder <msnyder@cleaver.cygnus.com>
* valarith.c (value_sub): Call check_typedef.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2000-07-20 Michael Snyder <msnyder@cleaver.cygnus.com>
|
||||
|
||||
* valarith.c (value_sub): Call check_typedef.
|
||||
|
||||
2000-07-19 Nicholas Duffek <nsd@redhat.com>
|
||||
|
||||
* thread.c (free_thread): New function.
|
||||
|
||||
@@ -110,8 +110,8 @@ value_sub (arg1, arg2)
|
||||
- (sz * value_as_long (arg2))));
|
||||
}
|
||||
else if (TYPE_CODE (type2) == TYPE_CODE_PTR
|
||||
&& TYPE_LENGTH (TYPE_TARGET_TYPE (type1))
|
||||
== TYPE_LENGTH (TYPE_TARGET_TYPE (type2)))
|
||||
&& TYPE_LENGTH (check_typedef (TYPE_TARGET_TYPE (type1)))
|
||||
== TYPE_LENGTH (check_typedef (TYPE_TARGET_TYPE (type2))))
|
||||
{
|
||||
/* pointer to <type x> - pointer to <type x>. */
|
||||
LONGEST sz = TYPE_LENGTH (check_typedef (TYPE_TARGET_TYPE (type1)));
|
||||
|
||||
Reference in New Issue
Block a user