mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 01:53:38 +08:00
gas: correct sb_add_char() 2nd parameter type
It's entirely unclear why size_t was used there; my only guess is copy- and-paste from another of the functions.
This commit is contained in:
parent
e0b9535c82
commit
b8b1a43888
2
gas/sb.c
2
gas/sb.c
@ -173,7 +173,7 @@ sb_reset (sb *ptr)
|
||||
/* Add character c to the end of the sb at ptr. */
|
||||
|
||||
void
|
||||
sb_add_char (sb *ptr, size_t c)
|
||||
sb_add_char (sb *ptr, char c)
|
||||
{
|
||||
sb_check (ptr, 1);
|
||||
ptr->ptr[ptr->len++] = c;
|
||||
|
2
gas/sb.h
2
gas/sb.h
@ -57,7 +57,7 @@ extern void sb_kill (sb *);
|
||||
extern void sb_add_sb (sb *, sb *);
|
||||
extern void sb_scrub_and_add_sb (sb *, sb *);
|
||||
extern void sb_reset (sb *);
|
||||
extern void sb_add_char (sb *, size_t);
|
||||
extern void sb_add_char (sb *, char);
|
||||
extern void sb_add_string (sb *, const char *);
|
||||
extern void sb_add_buffer (sb *, const char *, size_t);
|
||||
extern char *sb_terminate (sb *);
|
||||
|
Loading…
Reference in New Issue
Block a user