mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
build failure
This commit is contained in:
parent
55ae74b3d1
commit
c86b3b016e
@ -414,13 +414,13 @@ encode_wchar(wchar_t ch) const {
|
||||
return string(1, (char)ch);
|
||||
} else if (ch < 0x800) {
|
||||
return
|
||||
string(1, (char)(ch >> 6) | 0xc0) +
|
||||
string(1, (char)(ch & 0x3f) | 0x80);
|
||||
string(1, (char)((ch >> 6) | 0xc0)) +
|
||||
string(1, (char)((ch & 0x3f) | 0x80));
|
||||
} else {
|
||||
return
|
||||
string(1, (char)(ch >> 12) | 0xe0) +
|
||||
string(1, (char)((ch >> 6) & 0x3f) | 0x80) +
|
||||
string(1, (char)(ch & 0x3f) | 0x80);
|
||||
string(1, (char)((ch >> 12) | 0xe0)) +
|
||||
string(1, (char)(((ch >> 6) & 0x3f) | 0x80)) +
|
||||
string(1, (char)((ch & 0x3f) | 0x80));
|
||||
}
|
||||
|
||||
case E_unicode:
|
||||
@ -428,6 +428,8 @@ encode_wchar(wchar_t ch) const {
|
||||
string(1, (char)(ch >> 8)) +
|
||||
string(1, (char)(ch & 0xff));
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user