use static_cast

This commit is contained in:
Artem Pavlenko 2011-10-21 20:02:34 +01:00
parent ba0bdbd07e
commit b8ed785d7d

View file

@ -167,8 +167,8 @@ public:
: width_(width), height_(height), extent_(extent), : width_(width), height_(height), extent_(extent),
offset_x_(offset_x), offset_y_(offset_y) offset_x_(offset_x), offset_y_(offset_y)
{ {
sx_ = double(width_) / extent_.width(); sx_ = static_cast<double>(width_) / extent_.width();
sy_ = double(height_) / extent_.height(); sy_ = static_cast<double>(height_) / extent_.height();
} }
inline int width() const inline int width() const