Fixed shift warning in irrxml.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@212 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -661,9 +661,8 @@ private:
|
||||
TextData = new char_type[sizeWithoutHeader];
|
||||
|
||||
// MSVC debugger complains here about loss of data ...
|
||||
// todo ... I temporarily disabled the check in the build config
|
||||
for (int i=0; i<sizeWithoutHeader; ++i)
|
||||
TextData[i] = char_type( source[i] & ((1u << (sizeof( char_type)*8)) - 1));
|
||||
TextData[i] = char_type( source[i] & (src_char_type)((((uint64_t)1u << (sizeof( char_type)*8)) - 1)));
|
||||
|
||||
TextBegin = TextData;
|
||||
TextSize = sizeWithoutHeader;
|
||||
|
||||
Reference in New Issue
Block a user