aboutsummaryrefslogtreecommitdiff
path: root/src/str.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/str.c')
-rw-r--r--src/str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/str.c b/src/str.c
index 67fd709..e12719c 100644
--- a/src/str.c
+++ b/src/str.c
@@ -432,11 +432,11 @@ char str_last(const str *s) {
return s->data[s->len - 1];
}
-size_t str_find_char(const str *s, char c) {
+ptrdiff_t str_find_char(const str *s, char c) {
return str_slc_find_char(_strslc(s), c);
}
-size_t str_find_char_right(const str *s, char c) {
+ptrdiff_t str_find_char_right(const str *s, char c) {
return str_slc_find_char_right(_strslc(s), c);
}