From d25cdd9de085d5ef93419d846e82f971708c9e5e Mon Sep 17 00:00:00 2001 From: Brett Date: Mon, 6 Feb 2023 21:54:01 -0500 Subject: [PATCH] minor warning fix --- include/blt/std/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/blt/std/format.h b/include/blt/std/format.h index 17e798c..0a0846e 100644 --- a/include/blt/std/format.h +++ b/include/blt/std/format.h @@ -58,7 +58,7 @@ namespace blt::string { for (int i = 0; i < strlen; i++) { unsigned char c = str[i]; if (c >= 0x80 || c == 0) - utflen += (c >= 0x800) ? 2 : 1; + utflen += 1; } if (utflen > 65535 || /* overflow */ utflen < strlen)