Skip to content

Commit

Permalink
clean-up bfd/elf-attrs.c: change return type of uleb128_size to unsigned
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Longo committed Mar 4, 2025
1 parent 1efbe98 commit 434a7a6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bfd/elf-attrs.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@
#include "elf-bfd.h"

/* Return the number of bytes needed by I in uleb128 format. */
static int
uleb128_size (unsigned int i)
static uint32_t
uleb128_size (uint32_t i)
{
int size;
size = 1;
uint32_t size = 1;
while (i >= 0x80)
{
i >>= 7;
Expand Down Expand Up @@ -127,7 +126,7 @@ bfd_elf_obj_attr_size (bfd *abfd)
/* Write VAL in uleb128 format to P, returning a pointer to the
following byte. */
static bfd_byte *
write_uleb128 (bfd_byte *p, unsigned int val)
write_uleb128 (bfd_byte *p, uint32_t val)
{
bfd_byte c;
do
Expand Down

0 comments on commit 434a7a6

Please sign in to comment.