You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Update ICU to 76.1
This commit is contained in:
8
thirdparty/icu4c/common/uenum.cpp
vendored
8
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
|
||||
|
||||
Reference in New Issue
Block a user