Skip to content

Commit 120e901

Browse files
committed
static cast + missing newline fix
1 parent 708e289 commit 120e901

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libc/src/__support/wchar/character_converter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ ErrorOr<char8_t> CharacterConverter::pop_utf8() {
8787
}
8888

8989
state->bytes_processed++;
90-
return (char8_t)output;
90+
return static_cast<char8_t>(output);
9191
}
9292

9393
} // namespace internal

libc/test/src/__support/wchar/utf32_to_8_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,4 @@ TEST(LlvmLibcCharacterConverterUTF32To8Test, CantPushMidConversion) {
177177
// can't push a utf32 without finishing popping the utf8 bytes out
178178
int err = cr.push(utf32);
179179
ASSERT_EQ(err, -1);
180-
}
180+
}

0 commit comments

Comments
 (0)