diff options
author | Kung Hsu <kung@cygnus> | 1994-08-01 20:41:11 +0000 |
---|---|---|
committer | Kung Hsu <kung@cygnus> | 1994-08-01 20:41:11 +0000 |
commit | 5a04f7d16c200eae6e20d7cb9dfdad0950f37a8b (patch) | |
tree | 7afaaf5286df4b86cc42a8e1301fd195d7e71cfd /gdb/stabsread.c | |
parent | fbf718862a07ec03e20087a8afc83aa81d66875b (diff) | |
download | gdb-5a04f7d16c200eae6e20d7cb9dfdad0950f37a8b.zip gdb-5a04f7d16c200eae6e20d7cb9dfdad0950f37a8b.tar.gz gdb-5a04f7d16c200eae6e20d7cb9dfdad0950f37a8b.tar.bz2 |
Modified Files:
stabsread.c ChangeLog
* stabsread.c (read_type): Fix a bug in enum size calculation.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 1445540..58778e0 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -1739,7 +1739,7 @@ read_type (pp, objfile) /* Size specified in a type attribute overrides any other size. */ if (type_size != -1) - TYPE_LENGTH (type) = type_size / TARGET_CHAR_BIT; + TYPE_LENGTH (type) = (type_size + TARGET_CHAR_BIT - 1) / TARGET_CHAR_BIT; return type; } |