From f23c9760b7e902719ef44c445079862e9c2db333 Mon Sep 17 00:00:00 2001 From: vil02 Date: Wed, 31 Jan 2024 22:13:06 +0100 Subject: [PATCH] style: avoid sign conversion in `utf16_decode` --- api/utf16.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/utf16.hpp b/api/utf16.hpp index 63e44a346..4974ff28e 100644 --- a/api/utf16.hpp +++ b/api/utf16.hpp @@ -55,7 +55,7 @@ namespace jule std::vector utf16_decode(const std::vector &s) noexcept { std::vector a(s.size()); - jule::Int n = 0; + std::size_t n = 0; for (std::size_t i = 0; i < s.size(); ++i) { jule::U16 r = s[i];