Skip to content

Commit

Permalink
Eliminate inappropriate max call
Browse files Browse the repository at this point in the history
  • Loading branch information
jdee committed Feb 17, 2021
1 parent 17b7218 commit 78e87f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BranchSDK-Samples/Windows/TestBed/TextField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ TextField::appendText(const std::wstring& text, size_t maxLength)
ScopeLock l(m_lock);
wstring newText = getText() + L"\r\n" + text;
// Limit text length
const size_t total = min(maxLength, newText.length());
const wstring::size_type total = newText.length();
if (total > maxLength)
{
const size_t offset = total - maxLength;
Expand Down

0 comments on commit 78e87f6

Please sign in to comment.