瀏覽代碼

# fix VS10 Debug Runtime check Failure due to data loss on type conversion.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1205 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg 13 年之前
父節點
當前提交
25fbc9989c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/ColladaLoader.cpp

+ 1 - 1
code/ColladaLoader.cpp

@@ -1406,7 +1406,7 @@ void ColladaLoader::ConvertPath (aiString& ss)
     if( *it == '%' )
     if( *it == '%' )
     {
     {
       size_t nbr = strtoul16( ++it, &it);
       size_t nbr = strtoul16( ++it, &it);
-      *out++ = nbr;
+      *out++ = (char)(nbr & 0xFF);
     } else
     } else
     {
     {
       *out++ = *it++;
       *out++ = *it++;