From 78e87f6471806824c5a4caa8ff23c98573663af4 Mon Sep 17 00:00:00 2001 From: Jimmy Dee Date: Wed, 17 Feb 2021 15:25:23 -0800 Subject: [PATCH] Eliminate inappropriate max call --- BranchSDK-Samples/Windows/TestBed/TextField.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BranchSDK-Samples/Windows/TestBed/TextField.cpp b/BranchSDK-Samples/Windows/TestBed/TextField.cpp index 1c9d8b34..6f77cdbe 100644 --- a/BranchSDK-Samples/Windows/TestBed/TextField.cpp +++ b/BranchSDK-Samples/Windows/TestBed/TextField.cpp @@ -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;