Chore: runs clang-format

This commit is contained in:
李通洲
2026-04-28 19:45:19 +08:00
parent 594c73461e
commit 55e4896524
7 changed files with 24 additions and 16 deletions
+4 -4
View File
@@ -790,9 +790,9 @@ bool ffStrbufMatchSeparatedNS(const FFstrbuf* strbuf, uint32_t compLength, const
}
for (const char* p = comp; p < comp + compLength;) {
const char* colon = memchr(p, separator, (size_t)(comp + compLength - p));
const char* colon = memchr(p, separator, (size_t) (comp + compLength - p));
if (colon == NULL) {
uint32_t remainingLen = (uint32_t)(comp + compLength - p);
uint32_t remainingLen = (uint32_t) (comp + compLength - p);
return strbuf->length == remainingLen && memcmp(strbuf->chars, p, remainingLen) == 0;
}
@@ -818,9 +818,9 @@ bool ffStrbufMatchSeparatedIgnCaseNS(const FFstrbuf* strbuf, uint32_t compLength
}
for (const char* p = comp; p < comp + compLength;) {
const char* colon = memchr(p, separator, (size_t)(comp + compLength - p));
const char* colon = memchr(p, separator, (size_t) (comp + compLength - p));
if (colon == NULL) {
uint32_t remainingLen = (uint32_t)(comp + compLength - p);
uint32_t remainingLen = (uint32_t) (comp + compLength - p);
return strbuf->length == remainingLen && strncasecmp(strbuf->chars, p, remainingLen) == 0;
}