diff options
author | Stu Grossman <grossman@cygnus> | 1991-08-22 22:50:50 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1991-08-22 22:50:50 +0000 |
commit | 61a7292f6f9ba0f3885194d2b6f9e91f869e816b (patch) | |
tree | 268ce6ecee1f7320490dea73dfe76f78e731c99f /gdb/values.c | |
parent | aa69ff846c6c4ec6fb77e148fa1bc1eb4a907799 (diff) | |
download | fsf-binutils-gdb-61a7292f6f9ba0f3885194d2b6f9e91f869e816b.zip fsf-binutils-gdb-61a7292f6f9ba0f3885194d2b6f9e91f869e816b.tar.gz fsf-binutils-gdb-61a7292f6f9ba0f3885194d2b6f9e91f869e816b.tar.bz2 |
lint
Diffstat (limited to 'gdb/values.c')
-rw-r--r-- | gdb/values.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/values.c b/gdb/values.c index 34c64b3..dd53a86 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -1015,7 +1015,6 @@ value_headof (arg, btype, dtype) /* Now search through the virtual function table. */ entry = value_ind (vtbl); - entry_type = VALUE_TYPE (entry); nelems = longest_to_int (value_as_long (value_field (entry, 2))); for (i = 1; i <= nelems; i++) { @@ -1372,8 +1371,8 @@ modify_field (addr, fieldval, bitpos, bitsize) /* Reject values too big to fit in the field in question, otherwise adjoining fields may be corrupted. */ - if ((0 != fieldval & ~((1<<bitsize)-1)) - && bitsize < 8 * sizeof (fieldval)) + if (bitsize < (8 * sizeof (fieldval)) + && 0 != (fieldval & ~((1<<bitsize)-1))) error ("Value %d does not fit in %d bits.", fieldval, bitsize); bcopy (addr, &oword, sizeof oword); |