use static_cast
This commit is contained in:
parent
ba0bdbd07e
commit
b8ed785d7d
1 changed files with 2 additions and 2 deletions
|
@ -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<double>(width_) / extent_.width();
|
||||
sy_ = static_cast<double>(height_) / extent_.height();
|
||||
}
|
||||
|
||||
inline int width() const
|
||||
|
|
Loading…
Reference in a new issue