From 958c482b510cffff600472b7d3329ee83294b05f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=97=E5=B1=B1=E7=AB=B9?= Date: Tue, 9 Nov 2021 12:36:36 +0800 Subject: [PATCH] str_count signature should return size_t --- ctl/str.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctl/str.h b/ctl/str.h index cdb3eabc..4a80701c 100644 --- a/ctl/str.h +++ b/ctl/str.h @@ -97,7 +97,7 @@ str_find(str* self, const char* s) return SIZE_MAX; } -static inline int +static inline size_t str_count(str* self, char c) { size_t count = 0;