diff options
| author | Dave Parks <davep@lindenlab.com> | 2012-12-11 17:56:01 -0600 | 
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2012-12-11 17:56:01 -0600 | 
| commit | 968567346a6af564da353a06305cfd8ff5c443d7 (patch) | |
| tree | f04a179d070d3a41b5ce9faacb5f9d2b00cbee47 /indra | |
| parent | a073fa4009c6020970ce577b56bd76ea711cbe7f (diff) | |
MAINT-1028 Fix for gcc
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llprimitive/llmodel.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/indra/llprimitive/llmodel.cpp b/indra/llprimitive/llmodel.cpp index 3f93f064ce..5ed05e2201 100644 --- a/indra/llprimitive/llmodel.cpp +++ b/indra/llprimitive/llmodel.cpp @@ -628,7 +628,7 @@ LLModel::EModelStatus load_face_from_dom_polygons(std::vector<LLVolumeFace>& fac  			if (v)  			{  				U32 v_idx = idx[j*stride+v_offset]*3; -				v_idx = llclamp(v_idx, (U32) 0, v->getCount()); +				v_idx = llclamp(v_idx, (U32) 0, (U32) v->getCount());  				vert.getPosition().set(v->get(v_idx),  								v->get(v_idx+1),  								v->get(v_idx+2)); @@ -640,7 +640,7 @@ LLModel::EModelStatus load_face_from_dom_polygons(std::vector<LLVolumeFace>& fac  			if (n && n->getCount() > 0)  			{  				U32 n_idx = idx[j*stride+n_offset]*3; -				n_idx = llclamp(n_idx, (U32) 0, n->getCount()); +				n_idx = llclamp(n_idx, (U32) 0, (U32) n->getCount());  				vert.getNormal().set(n->get(n_idx),  								n->get(n_idx+1),  								n->get(n_idx+2)); @@ -654,7 +654,7 @@ LLModel::EModelStatus load_face_from_dom_polygons(std::vector<LLVolumeFace>& fac  			if (t && t->getCount() > 0)  			{  				U32 t_idx = idx[j*stride+t_offset]*2; -				t_idx = llclamp(t_idx, (U32) 0, t->getCount()); +				t_idx = llclamp(t_idx, (U32) 0, (U32) t->getCount());  				vert.mTexCoord.setVec(t->get(t_idx),  								t->get(t_idx+1));								  			} | 
