From f762059d5c8de5554db4173b4c49e15a8934bcb7 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Fri, 21 Oct 2011 20:02:34 +0100 Subject: [PATCH] use static_cast --- include/mapnik/ctrans.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mapnik/ctrans.hpp b/include/mapnik/ctrans.hpp index 04b33f178..1bfac5b8c 100644 --- a/include/mapnik/ctrans.hpp +++ b/include/mapnik/ctrans.hpp @@ -167,8 +167,8 @@ public: : width_(width), height_(height), extent_(extent), offset_x_(offset_x), offset_y_(offset_y) { - sx_ = double(width_) / extent_.width(); - sy_ = double(height_) / extent_.height(); + sx_ = static_cast(width_) / extent_.width(); + sy_ = static_cast(height_) / extent_.height(); } inline int width() const