Skip to content

Commit 3f59860

Browse files
committed
Misc.
1 parent 6096fb8 commit 3f59860

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/unicode_util.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ UnicodeUtil::Utf16Collation* UnicodeUtil::Utf16Collation::create(
16931693
continue;
16941694

16951695
fb_assert(accessor.current()->first.hasData());
1696-
USHORT firstCh = accessor.current()->first[0];
1696+
USHORT firstCh = accessor.current()->first.front();
16971697
USHORT lastCh = accessor.current()->first.back();
16981698

16991699
if ((firstCh >= 0xFDD0 && firstCh <= 0xFDEF) || UTF_IS_SURROGATE(lastCh))
@@ -1891,7 +1891,7 @@ USHORT UnicodeUtil::Utf16Collation::stringToKey(USHORT srcLen, const USHORT* src
18911891

18921892
if (keys)
18931893
{
1894-
UCHAR lastCharKey[100];
1894+
UCHAR lastCharKey[BUFFER_TINY]; // sort key for a single character
18951895
ULONG prefixLen, lastCharKeyLen;
18961896

18971897
srcLenLong -= i;

0 commit comments

Comments
 (0)