diff options
Diffstat (limited to 'sal/rtl/locale.cxx')
-rw-r--r-- | sal/rtl/locale.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/rtl/locale.cxx b/sal/rtl/locale.cxx index e7ef4223b0ca..b6b5ee499141 100644 --- a/sal/rtl/locale.cxx +++ b/sal/rtl/locale.cxx @@ -104,7 +104,7 @@ extern "C" void rtl_hashtable_init(RTL_HASHTABLE** table, sal_Int8 sizeIndex) extern "C" sal_Int32 rtl_hashfunc(RTL_HASHTABLE* table, sal_Int32 key) { - return ((sal_uInt32) key % table->Size); + return (static_cast<sal_uInt32>(key) % table->Size); } extern "C" sal_Bool rtl_hashtable_grow(RTL_HASHTABLE** table); @@ -143,7 +143,7 @@ sal_Bool rtl_hashtable_grow(RTL_HASHTABLE** table) RTL_HASHTABLE* pNewTable = nullptr; sal_Int32 i = 0; - rtl_hashtable_init(&pNewTable, (sal_Int8)((*table)->iSize + 1)); + rtl_hashtable_init(&pNewTable, static_cast<sal_Int8>((*table)->iSize + 1)); while (i < (*table)->Size) { |