diff --git a/include/irrString.h b/include/irrString.h index 1e9a9689..7c56f980 100644 --- a/include/irrString.h +++ b/include/irrString.h @@ -266,7 +266,7 @@ public: the trailing NUL. */ u32 size() const { - return str.size(); + return static_cast(str.size()); } //! Informs if the string is empty or not. @@ -834,7 +834,7 @@ public: if (!delimiter) return 0; - const u32 oldSize=ret.size(); + const u32 oldSize=static_cast(ret.size()); u32 tokenStartIdx = 0; for (u32 i=0; i()); - return ret.size()-oldSize; + return static_cast(ret.size()-oldSize); } // This function should not be used and is only kept for "CGUIFileOpenDialog::pathToStringW". @@ -888,10 +888,10 @@ private: return len; } static inline u32 calclen(const char* p) { - return strlen(p); + return static_cast(strlen(p)); } static inline u32 calclen(const wchar_t* p) { - return wcslen(p); + return static_cast(wcslen(p)); } //! strcmp wrapper