Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Misc/Char.h |
Include |
#include "Misc/Char.h" |
static constexpr uint32 ToUnsigned
(
CharType Char
)
Avoid sign extension problems with signed characters smaller than int
E.g. 'Ö' - 'A' is negative since the char 'Ö' (0xD6) is negative and gets sign-extended to the 32-bit int 0xFFFFFFD6 before subtraction happens.
Mainly needed for subtraction and addition.