mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
2000-06-15 Michael Snyder <msnyder@seadog.cygnus.com>
* valops.c (value_cast): Break up long lines.
This commit is contained in:
parent
37ce37b139
commit
716c501e94
@ -1,3 +1,7 @@
|
|||||||
|
2000-06-15 Michael Snyder <msnyder@seadog.cygnus.com>
|
||||||
|
|
||||||
|
* valops.c (value_cast): Break up long lines.
|
||||||
|
|
||||||
2000-06-14 Jim Blandy <jimb@redhat.com>
|
2000-06-14 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
* dwarf2read.c (dump_die): Use the proper printf format for
|
* dwarf2read.c (dump_die): Use the proper printf format for
|
||||||
|
@ -273,7 +273,8 @@ value_cast (type, arg2)
|
|||||||
/* With HP aCC, pointers to data members have a bias */
|
/* With HP aCC, pointers to data members have a bias */
|
||||||
case TYPE_CODE_MEMBER:
|
case TYPE_CODE_MEMBER:
|
||||||
retvalp = value_from_longest (type, value_as_long (arg2));
|
retvalp = value_from_longest (type, value_as_long (arg2));
|
||||||
ptr = (unsigned int *) VALUE_CONTENTS (retvalp); /* force evaluation */
|
/* force evaluation */
|
||||||
|
ptr = (unsigned int *) VALUE_CONTENTS (retvalp);
|
||||||
*ptr &= ~0x20000000; /* zap 29th bit to remove bias */
|
*ptr &= ~0x20000000; /* zap 29th bit to remove bias */
|
||||||
return retvalp;
|
return retvalp;
|
||||||
|
|
||||||
@ -286,7 +287,8 @@ value_cast (type, arg2)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
longest = value_as_long (arg2);
|
longest = value_as_long (arg2);
|
||||||
return value_from_longest (type, convert_to_boolean ? (LONGEST) (longest ? 1 : 0) : longest);
|
return value_from_longest (type, convert_to_boolean ?
|
||||||
|
(LONGEST) (longest ? 1 : 0) : longest);
|
||||||
}
|
}
|
||||||
else if (TYPE_LENGTH (type) == TYPE_LENGTH (type2))
|
else if (TYPE_LENGTH (type) == TYPE_LENGTH (type2))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user