mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
use c++ style casts
This commit is contained in:
parent
aa8c543744
commit
9dd07fd40b
@ -149,7 +149,7 @@ void raster_colorizer::colorize(image_rgba8 & out, T const& in,
|
||||
|
||||
inline unsigned interpolate(unsigned start, unsigned end, float fraction)
|
||||
{
|
||||
return static_cast<unsigned>(fraction * ((float)end - (float)start) + start);
|
||||
return static_cast<unsigned>(fraction * (static_cast<float>(end) - static_cast<float>(start)) + static_cast<float>(start));
|
||||
}
|
||||
|
||||
unsigned raster_colorizer::get_color(float value) const
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user