TerminalFont: fix compiler warnings

This commit is contained in:
李通洲
2023-09-21 00:03:31 +08:00
parent 30ae8a2f96
commit ec8ee1a509
+1 -1
View File
@@ -378,7 +378,7 @@ static bool detectContour(const FFstrbuf* exe, FFTerminalFontResult* result)
uint32_t index = ffStrbufFirstIndexS(&buf, "Font description : (family=");
if(index >= buf.length) return false;
index += strlen("Font description : (family=");
index += (uint32_t) strlen("Font description : (family=");
ffStrbufSubstrBefore(&buf, ffStrbufNextIndexS(&buf, index, " weight="));
ffFontInitCopy(&result->font, buf.chars + index);
return true;