From c7b940f721a17335b700cea4b017f207cdf4e07c Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Mon, 23 May 2022 15:54:59 +0200 Subject: Bugfix: cstr_find_s() returned bool. Fix return size_t. --- include/stc/cstr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stc/cstr.h b/include/stc/cstr.h index 69ab8a2d..41479c30 100644 --- a/include/stc/cstr.h +++ b/include/stc/cstr.h @@ -199,7 +199,7 @@ STC_INLINE size_t cstr_find(cstr s, const char* search) { return res ? res - str : cstr_npos; } -STC_INLINE bool cstr_find_s(cstr s, cstr search) +STC_INLINE size_t cstr_find_s(cstr s, cstr search) { return cstr_find(s, cstr_str(&search)); } STC_INLINE bool cstr_contains(cstr s, const char* search) -- cgit v1.2.3