Skip to content

Commit b2cf04d

Browse files
committed
Fix implemencition conversion changes signedness error in lug::ascii::toascii
1 parent b59d23c commit b2cf04d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/lug/ascii.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct ascii_toascii_fn
3737
{
3838
[[nodiscard]] LUG_ALWAYS_INLINE constexpr auto operator()(int c) const noexcept -> int
3939
{
40-
return static_cast<int>(static_cast<unsigned int>(c & 0x7fU));
40+
return static_cast<int>(static_cast<unsigned int>(c) & 0x7fU);
4141
}
4242
};
4343

0 commit comments

Comments
 (0)