summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_unicode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/fx_unicode.cpp')
-rw-r--r--core/fxcrt/fx_unicode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/fx_unicode.cpp b/core/fxcrt/fx_unicode.cpp
index 595bb65a63..f23200491a 100644
--- a/core/fxcrt/fx_unicode.cpp
+++ b/core/fxcrt/fx_unicode.cpp
@@ -24,7 +24,7 @@ wchar_t GetMirrorChar(wchar_t wch, uint32_t dwProps) {
uint32_t FX_GetUnicodeProperties(wchar_t wch) {
size_t idx = static_cast<size_t>(wch);
if (idx < kTextLayoutCodePropertiesSize)
- return kTextLayoutCodeProperties[(uint16_t)wch];
+ return kTextLayoutCodeProperties[idx];
return 0;
}