mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-29 11:11:14 +00:00
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:
parent
329a9a7b40
commit
e04c95988c
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user