Index: ui/gfx/animation/linear_animation.cc |
diff --git a/ui/gfx/animation/linear_animation.cc b/ui/gfx/animation/linear_animation.cc |
index dd114a078769174d670ce7ad81a0ba1ec77cf53d..7c7327958b2ce2abe61dd5f429667904214b475b 100644 |
--- a/ui/gfx/animation/linear_animation.cc |
+++ b/ui/gfx/animation/linear_animation.cc |
@@ -5,6 +5,7 @@ |
#include "ui/gfx/animation/linear_animation.h" |
#include <math.h> |
+#include <stdint.h> |
#include <algorithm> |
@@ -50,7 +51,7 @@ double LinearAnimation::GetCurrentValue() const { |
void LinearAnimation::SetCurrentValue(double new_value) { |
new_value = std::max(0.0, std::min(1.0, new_value)); |
base::TimeDelta time_delta = base::TimeDelta::FromMicroseconds( |
- static_cast<int64>(duration_.InMicroseconds() * (new_value - state_))); |
+ static_cast<int64_t>(duration_.InMicroseconds() * (new_value - state_))); |
SetStartTime(start_time() - time_delta); |
state_ = new_value; |
} |