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

Unified Diff: ui/gfx/geometry/vector2d.cc

Issue 1543183002: Switch to standard integer types in ui/gfx/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « ui/gfx/geometry/vector2d.h ('k') | ui/gfx/geometry/vector2d_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/geometry/vector2d.cc
diff --git a/ui/gfx/geometry/vector2d.cc b/ui/gfx/geometry/vector2d.cc
index d9f57fd3b10922c73ce977e2a42fa469a0950fbd..43f25e933a0e9c088ee298a392a6d4103a9db260 100644
--- a/ui/gfx/geometry/vector2d.cc
+++ b/ui/gfx/geometry/vector2d.cc
@@ -24,8 +24,8 @@ void Vector2d::Subtract(const Vector2d& other) {
y_ -= other.y_;
}
-int64 Vector2d::LengthSquared() const {
- return static_cast<int64>(x_) * x_ + static_cast<int64>(y_) * y_;
+int64_t Vector2d::LengthSquared() const {
+ return static_cast<int64_t>(x_) * x_ + static_cast<int64_t>(y_) * y_;
}
float Vector2d::Length() const {
« no previous file with comments | « ui/gfx/geometry/vector2d.h ('k') | ui/gfx/geometry/vector2d_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698