summaryrefslogtreecommitdiffstats
path: root/thirdparty/icu4c/common/utrie_swap.cpp
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-10-29 19:25:49 -0500
committerThaddeus Crews <repiteo@outlook.com>2024-10-29 19:25:49 -0500
commit49cf7996e16b0e9b7b2b77e94085d18de21ece1b (patch)
tree07cf2a09367618d1eefb5b2e49b1b600bcaaba44 /thirdparty/icu4c/common/utrie_swap.cpp
parent05a4620e88fc454e844f69e87a6eb444426c2a6e (diff)
parente698870caa3dff7234f0a4433b1751834b9e7811 (diff)
downloadredot-engine-49cf7996e16b0e9b7b2b77e94085d18de21ece1b.tar.gz
Merge pull request #98496 from bruvzg/icu761
Update ICU to 76.1
Diffstat (limited to 'thirdparty/icu4c/common/utrie_swap.cpp')
-rw-r--r--thirdparty/icu4c/common/utrie_swap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/thirdparty/icu4c/common/utrie_swap.cpp b/thirdparty/icu4c/common/utrie_swap.cpp
index 83d183699d..bb060203fd 100644
--- a/thirdparty/icu4c/common/utrie_swap.cpp
+++ b/thirdparty/icu4c/common/utrie_swap.cpp
@@ -64,7 +64,7 @@ utrie_swap(const UDataSwapper *ds,
return 0;
}
- dataIs32=(UBool)((trie.options&UTRIE_OPTIONS_DATA_IS_32_BIT)!=0);
+ dataIs32 = (trie.options & UTRIE_OPTIONS_DATA_IS_32_BIT) != 0;
size=sizeof(UTrieHeader)+trie.indexLength*2+trie.dataLength*(dataIs32?4:2);
if(length>=0) {
@@ -305,7 +305,7 @@ getVersion(const void *data, int32_t length, UBool anyEndianOk) {
if(length<16 || data==nullptr || (U_POINTER_MASK_LSB(data, 3)!=0)) {
return 0;
}
- signature=*(const uint32_t *)data;
+ signature = *static_cast<const uint32_t*>(data);
if(signature==UCPTRIE_SIG) {
return 3;
}