Remove a useless cast.
Detected by the upcoming gcc-4.8.
This commit is contained in:
parent
fb47d9011f
commit
a070010764
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ void slider::set_slider_position(int x)
|
|||
if (tmp > loc.w - image_->w)
|
||||
tmp = loc.w - image_->w;
|
||||
|
||||
set_value(tmp * (max_ - min_) / static_cast<int>(loc.w - image_->w) + min_);
|
||||
set_value(tmp * (max_ - min_) / (loc.w - image_->w) + min_);
|
||||
}
|
||||
|
||||
void slider::mouse_motion(const SDL_MouseMotionEvent& event)
|
||||
|
|
Loading…
Add table
Reference in a new issue