forked from qt-creator/qt-creator
Fix MSVC-64 warnings about size_t -> int truncations in C++-lib.
Change-Id: Ibe6f41ac15df1ec685b0d0766ff568abf6f3ae7e Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -35,7 +35,7 @@ using namespace CPlusPlus;
|
||||
|
||||
bool ByteArrayRef::startsWith(const char *s) const
|
||||
{
|
||||
int l = std::strlen(s);
|
||||
const int l = int(std::strlen(s));
|
||||
if (l > m_length)
|
||||
return false;
|
||||
return !qstrncmp(start(), s, l);
|
||||
|
||||
Reference in New Issue
Block a user