Skip to content

Commit

Permalink
fixing compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jkammerl committed Mar 26, 2013
1 parent 9e7eb3b commit ece0a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/include/pcl/point_types_conversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ namespace pcl
PointRGBtoI (RGB& in,
Intensity32u& out)
{
out.intensity = static_cast<uint32_t>(std::numeric_limits<uint32_t>::max() * 0.299f * static_cast <float> (in.r)
out.intensity = static_cast<uint32_t>(static_cast<float>(std::numeric_limits<uint32_t>::max()) * 0.299f * static_cast <float> (in.r)
+ 0.587f * static_cast <float> (in.g) + 0.114f * static_cast <float> (in.b));
}

Expand Down

0 comments on commit ece0a4c

Please sign in to comment.