Bladeren bron

Fixed build warnings on MSVC14 x64 in subdivision routine.

Jared Mulconry 8 jaren geleden
bovenliggende
commit
387afcf74f
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      code/Subdivision.cpp

+ 1 - 1
code/Subdivision.cpp

@@ -188,7 +188,7 @@ void CatmullClarkSubdivider::Subdivide (
         }
         }
 
 
         outmeshes.push_back(NULL);inmeshes.push_back(i);
         outmeshes.push_back(NULL);inmeshes.push_back(i);
-        maptbl.push_back(s);
+        maptbl.push_back(static_cast<unsigned int>(s));
     }
     }
 
 
     // Do the actual subdivision on the preallocated storage. InternSubdivide
     // Do the actual subdivision on the preallocated storage. InternSubdivide