Chromium Code Reviews| Index: core/src/fxcrt/fx_basic_wstring.cpp |
| diff --git a/core/src/fxcrt/fx_basic_wstring.cpp b/core/src/fxcrt/fx_basic_wstring.cpp |
| index 11a840a806d4a9e98e1fe1a856eb2aca3c4e61cc..a96233d1da6b1870a1e8f4fb29a89dd832a26ea1 100644 |
| --- a/core/src/fxcrt/fx_basic_wstring.cpp |
| +++ b/core/src/fxcrt/fx_basic_wstring.cpp |
| @@ -205,7 +205,7 @@ bool CFX_WideString::Equal(const wchar_t* ptr) const { |
| if (!ptr) { |
| return m_pData->m_nDataLength == 0; |
| } |
| - return wcslen(ptr) == m_pData->m_nDataLength && |
| + return wcslen(ptr) == static_cast<unsigned int>(m_pData->m_nDataLength) && |
|
Tom Sepez
2016/03/11 00:30:28
wcslen() returns a size_t, so maybe we want to cas
Wei Li
2016/03/11 04:11:36
Done.
|
| wmemcmp(ptr, m_pData->m_String, m_pData->m_nDataLength) == 0; |
| } |
| bool CFX_WideString::Equal(const CFX_WideStringC& str) const { |