1
0
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:
bruvzg
2024-10-24 22:09:23 +03:00
parent 1015a481ff
commit e698870caa
194 changed files with 13126 additions and 11221 deletions

View File

@@ -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