From 5eecb2ab48547449cfd9d668b92cb257bbd8da86 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 25 Sep 2009 09:33:46 +0000 Subject: Warning fixes for ITASC. Also, use instead of , it works everywhere. --- intern/itasc/CopyPose.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'intern/itasc/CopyPose.cpp') diff --git a/intern/itasc/CopyPose.cpp b/intern/itasc/CopyPose.cpp index 7977089d280..69722909ed1 100644 --- a/intern/itasc/CopyPose.cpp +++ b/intern/itasc/CopyPose.cpp @@ -21,7 +21,7 @@ CopyPose::CopyPose(unsigned int control_output, unsigned int dynamic_output, dou { m_maxerror = armlength/2.0; m_outputControl = (control_output & CTL_ALL); - int _nc = nBitsOn(m_outputControl); + unsigned int _nc = nBitsOn(m_outputControl); if (!_nc) return; // reset the constraint set @@ -284,7 +284,7 @@ void CopyPose::updateJacobian() void CopyPose::updateState(ConstraintValues* _values, ControlState* _state, unsigned int mask, double timestep) { - int id = (mask == CTL_ROTATIONX) ? ID_ROTATIONX : ID_POSITIONX; + unsigned int id = (mask == CTL_ROTATIONX) ? ID_ROTATIONX : ID_POSITIONX; ControlState::ControlValue* _yval; ConstraintSingleValue* _data; int i, j, k; -- cgit v1.2.3