diff --git a/panda/src/pgraph/shaderInput.I b/panda/src/pgraph/shaderInput.I index d0a0e79fbb..a7318cdc2b 100644 --- a/panda/src/pgraph/shaderInput.I +++ b/panda/src/pgraph/shaderInput.I @@ -491,16 +491,16 @@ operator < (const ShaderInput &other) const { case M_vector: if (_stored_vector[0] != other._stored_vector[0]) { - return (_stored_vector[0] < other._stored_vector[0]) ? -1 : 1; + return _stored_vector[0] < other._stored_vector[0]; } if (_stored_vector[1] != other._stored_vector[1]) { - return (_stored_vector[1] < other._stored_vector[1]) ? -1 : 1; + return _stored_vector[1] < other._stored_vector[1]; } if (_stored_vector[2] != other._stored_vector[2]) { - return (_stored_vector[2] < other._stored_vector[2]) ? -1 : 1; + return _stored_vector[2] < other._stored_vector[2]; } if (_stored_vector[3] != other._stored_vector[3]) { - return (_stored_vector[3] < other._stored_vector[3]) ? -1 : 1; + return _stored_vector[3] < other._stored_vector[3]; } return 0;