diff --git a/include/SFML/System/Utf.inl b/include/SFML/System/Utf.inl index d48d8b51..1fed3a00 100644 --- a/include/SFML/System/Utf.inl +++ b/include/SFML/System/Utf.inl @@ -293,7 +293,7 @@ In Utf<16>::decode(In begin, In end, Uint32& output, Uint32 replacement) if ((second >= 0xDC00) && (second <= 0xDFFF)) { // The second element is valid: convert the two elements to a UTF-32 character - output = static_cast(((first - 0xD800) << 10) + (second - 0xDC00) + 0x0010000); + output = ((first - 0xD800) << 10) + (second - 0xDC00) + 0x0010000; } else {