diff options
-rw-r--r-- | gold/ChangeLog | 5 | ||||
-rw-r--r-- | gold/int_encoding.cc | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index e2f6299..5103dab 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2022-05-18 Nick Clifton <nickc@redhat.com> + + * int_encoding.cc (get_length_as_unsigned_LEB_128): Remove + current_length variable. + 2022-02-17 Nick Clifton <nickc@redhat.com> * po/sr.po: Updated Serbian translation. diff --git a/gold/int_encoding.cc b/gold/int_encoding.cc index d27b2af..196e0b3 100644 --- a/gold/int_encoding.cc +++ b/gold/int_encoding.cc @@ -119,12 +119,7 @@ get_length_as_unsigned_LEB_128(uint64_t value) size_t length = 0; do { - unsigned char current_byte = value & 0x7f; value >>= 7; - if (value != 0) - { - current_byte |= 0x80; - } length++; } while (value != 0); |