Index: ui/gfx/animation/tween.cc |
diff --git a/ui/gfx/animation/tween.cc b/ui/gfx/animation/tween.cc |
index 174305078c27f8425e476d67bb0b5d70afe09351..967e723a603e52c235902afd6047c9a999e90f2d 100644 |
--- a/ui/gfx/animation/tween.cc |
+++ b/ui/gfx/animation/tween.cc |
@@ -131,10 +131,11 @@ int Tween::IntValueBetween(double value, int start, int target) { |
else |
delta++; |
#if defined(OS_WIN) |
- return start + static_cast<int>(value * _nextafter(delta, 0)); |
+ value *= _nextafter(delta, 0); |
#else |
- return start + static_cast<int>(value * nextafter(delta, 0)); |
+ value *= nextafter(delta, 0); |
#endif |
+ return start + static_cast<int>(value); |
} |
//static |