Skip to content
Snippets Groups Projects
Commit ac613853 authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

fixed int->bool conversion warning

parent f4388e4a
No related merge requests found
......@@ -205,9 +205,9 @@ public:
*/
inline void calcInvDirection () {
inv_direction_ = Vec3(1/direction_[0], 1/direction_[1], 1/direction_[2]);
sign_[0] = int8_c(inv_direction_[0] < 0);
sign_[1] = int8_c(inv_direction_[1] < 0);
sign_[2] = int8_c(inv_direction_[2] < 0);
sign_[0] = (inv_direction_[0] < 0) ? int8_t(1) : int8_t(0);
sign_[1] = (inv_direction_[1] < 0) ? int8_t(1) : int8_t(0);
sign_[2] = (inv_direction_[2] < 0) ? int8_t(1) : int8_t(0);
}
/*!\brief Transforms the ray to the body frame.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment