far: fix conversion warnings in Far*SubdivisionTablesFactory

warning C4242: 'argument' : conversion from 'int' to 'unsigned char', possible loss of data
This commit is contained in:
Andrew Wong 2013-02-09 23:21:21 -05:00
parent 329a9a7b40
commit e04c95988c
2 changed files with 4 additions and 2 deletions

View File

@ -217,7 +217,8 @@ FarCatmarkSubdivisionTablesFactory<T,U>::Create( FarMeshFactory<T,U> * meshFacto
// Look at HbrCatmarkSubdivision<T>::Subdivide for more details about
// the multi-pass interpolation
int masks[2], npasses;
unsigned char masks[2];
int npasses;
float weights[2];
masks[0] = pv->GetMask(false);
masks[1] = pv->GetMask(true);

View File

@ -169,7 +169,8 @@ FarLoopSubdivisionTablesFactory<T,U>::Create( FarMeshFactory<T,U> * meshFactory,
// Look at HbrCatmarkSubdivision<T>::Subdivide for more details about
// the multi-pass interpolation
int masks[2], npasses;
unsigned char masks[2];
int npasses;
float weights[2];
masks[0] = pv->GetMask(false);
masks[1] = pv->GetMask(true);