Skip to content

Commit 78e87f6

Browse files
committed
Eliminate inappropriate max call
1 parent 17b7218 commit 78e87f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BranchSDK-Samples/Windows/TestBed/TextField.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ TextField::appendText(const std::wstring& text, size_t maxLength)
7272
ScopeLock l(m_lock);
7373
wstring newText = getText() + L"\r\n" + text;
7474
// Limit text length
75-
const size_t total = min(maxLength, newText.length());
75+
const wstring::size_type total = newText.length();
7676
if (total > maxLength)
7777
{
7878
const size_t offset = total - maxLength;

0 commit comments

Comments
 (0)