Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: ui/gfx/animation/tween.cc

Issue 135643006: Fix test failure for 32 bit official build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698