aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2024-07-26 08:01:07 +0200
committerJan Beulich <jbeulich@suse.com>2024-07-26 08:01:07 +0200
commitb8b1a4388835bf2899bb0cc148db42a2c32e2af6 (patch)
treede80d24a776ac513139c3c0f441972646361e21a /gas
parente0b9535c824deb24e209acddcb7662124aeb413f (diff)
downloadgdb-b8b1a4388835bf2899bb0cc148db42a2c32e2af6.zip
gdb-b8b1a4388835bf2899bb0cc148db42a2c32e2af6.tar.gz
gdb-b8b1a4388835bf2899bb0cc148db42a2c32e2af6.tar.bz2
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.
Diffstat (limited to 'gas')
-rw-r--r--gas/sb.c2
-rw-r--r--gas/sb.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gas/sb.c b/gas/sb.c
index e96355d..8eb47c9 100644
--- a/gas/sb.c
+++ b/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;
diff --git a/gas/sb.h b/gas/sb.h
index c960196..2507d35 100644
--- a/gas/sb.h
+++ b/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 *);