AAganichev's parse_stab_type size fix.

This commit is contained in:
Alan Modra 2000-07-01 10:00:05 +00:00
parent 41f5a528d2
commit 944e5c61c8
2 changed files with 6 additions and 0 deletions

View file

@ -1261,6 +1261,7 @@ parse_stab_type (dhandle, info, typename, pp, slotp)
{
case 's':
size = atoi (attr + 1);
size /= 8; /* Size is in bits. We store it in bytes. */
if (size <= 0)
size = -1;
break;