Fixed shift warning in irrxml.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@212 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2008-11-01 11:31:03 +00:00
parent 6b02833561
commit 99e92472fc
1 changed files with 1 additions and 2 deletions

View File

@ -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;