diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/fxcrt/cfx_string_c_template.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/cfx_string_c_template.h b/core/fxcrt/cfx_string_c_template.h index 1473160334..cd3cd27e75 100644 --- a/core/fxcrt/cfx_string_c_template.h +++ b/core/fxcrt/cfx_string_c_template.h @@ -35,7 +35,7 @@ class CFX_StringCTemplate { CFX_StringCTemplate(const CharType* ptr, FX_STRSIZE len) : m_Ptr(reinterpret_cast<const UnsignedType*>(ptr)), - m_Length(len == -1 ? FXSYS_len(ptr) : len) {} + m_Length(len < 0 ? FXSYS_len(ptr) : len) {} template <typename U = UnsignedType> CFX_StringCTemplate( |