graveman
Hello! I thought a lot of time and could not understand why in String::DecodeUTF16 method is it used bitwise “or” operator instead of sum in this code:
Why not return ((word1 & 0x3ff) << 10) | (word2 & 0x3ff) + 0x10000; ?
Hello! I thought a lot of time and could not understand why in String::DecodeUTF16 method is it used bitwise “or” operator instead of sum in this code:
Why not return ((word1 & 0x3ff) << 10) | (word2 & 0x3ff) + 0x10000; ?
You have uncovered a bug
Thanks!
Wow, really? I’m glad I could help.