diff --git a/Userland/Libraries/LibTextCodec/Decoder.cpp b/Userland/Libraries/LibTextCodec/Decoder.cpp index 79c3d8f760..958e7f0839 100644 --- a/Userland/Libraries/LibTextCodec/Decoder.cpp +++ b/Userland/Libraries/LibTextCodec/Decoder.cpp @@ -353,7 +353,7 @@ ErrorOr UTF16LEDecoder::to_utf8(StringView input) ErrorOr Latin1Decoder::process(StringView input, Function(u32)> on_code_point) { - for (auto ch : input) { + for (u8 ch : input) { // Latin1 is the same as the first 256 Unicode code_points, so no mapping is needed, just utf-8 encoding. TRY(on_code_point(ch)); }