Index: ui/gfx/geometry/insets.h |
diff --git a/ui/gfx/geometry/insets.h b/ui/gfx/geometry/insets.h |
index 01379193167f042d0b9b89cb27ea721e662fd29d..6e9c70bd89c1106002e9ca8ef4e927e5679bbddb 100644 |
--- a/ui/gfx/geometry/insets.h |
+++ b/ui/gfx/geometry/insets.h |
@@ -34,7 +34,8 @@ class GFX_EXPORT Insets : public InsetsBase<Insets, int> { |
} |
operator InsetsF() const { |
- return InsetsF(top(), left(), bottom(), right()); |
+ return InsetsF(static_cast<float>(top()), static_cast<float>(left()), |
+ static_cast<float>(bottom()), static_cast<float>(right())); |
} |
// Returns a string representation of the insets. |