summaryrefslogtreecommitdiff
path: root/userland/libc/tb/sb.c
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/tb/sb.c')
-rw-r--r--userland/libc/tb/sb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/userland/libc/tb/sb.c b/userland/libc/tb/sb.c
index 0d0ec52..c3fbc64 100644
--- a/userland/libc/tb/sb.c
+++ b/userland/libc/tb/sb.c
@@ -33,7 +33,7 @@ void sb_append_char(struct sb *ctx, char c) {
ctx->length++;
}
-int sb_delete_right(struct sb *ctx, int n) {
+int sb_delete_right(struct sb *ctx, size_t n) {
n = min(n, ctx->length);
ctx->length -= n;
return n;