feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
8
engine/thirdparty/icu4c/common/uenum.cpp
vendored
8
engine/thirdparty/icu4c/common/uenum.cpp
vendored
|
|
@ -34,14 +34,14 @@ static const int32_t PAD = 8;
|
|||
static void* _getBuffer(UEnumeration* en, int32_t capacity) {
|
||||
|
||||
if (en->baseContext != nullptr) {
|
||||
if (((_UEnumBuffer*) en->baseContext)->len < capacity) {
|
||||
if (static_cast<_UEnumBuffer*>(en->baseContext)->len < capacity) {
|
||||
capacity += PAD;
|
||||
en->baseContext = uprv_realloc(en->baseContext,
|
||||
sizeof(int32_t) + capacity);
|
||||
if (en->baseContext == nullptr) {
|
||||
return nullptr;
|
||||
}
|
||||
((_UEnumBuffer*) en->baseContext)->len = capacity;
|
||||
static_cast<_UEnumBuffer*>(en->baseContext)->len = capacity;
|
||||
}
|
||||
} else {
|
||||
capacity += PAD;
|
||||
|
|
@ -49,10 +49,10 @@ static void* _getBuffer(UEnumeration* en, int32_t capacity) {
|
|||
if (en->baseContext == nullptr) {
|
||||
return nullptr;
|
||||
}
|
||||
((_UEnumBuffer*) en->baseContext)->len = capacity;
|
||||
static_cast<_UEnumBuffer*>(en->baseContext)->len = capacity;
|
||||
}
|
||||
|
||||
return (void*) & ((_UEnumBuffer*) en->baseContext)->data;
|
||||
return static_cast<void*>(&static_cast<_UEnumBuffer*>(en->baseContext)->data);
|
||||
}
|
||||
|
||||
U_CAPI void U_EXPORT2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue