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

Unified Diff: src/core/Sk2x.h

Issue 1027793002: Fix ambiguity in negate()s. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: (T) Created 5 years, 9 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 | src/core/Sk4x.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/Sk2x.h
diff --git a/src/core/Sk2x.h b/src/core/Sk2x.h
index e9576ded997bacf054cac1e7a8122a0e99497073..3fbe76c37f083df651629ee3889ee39599555710 100644
--- a/src/core/Sk2x.h
+++ b/src/core/Sk2x.h
@@ -58,7 +58,7 @@ public:
Sk2x& operator -=(const Sk2x& o) { return (*this = *this - o); }
Sk2x& operator *=(const Sk2x& o) { return (*this = *this * o); }
- Sk2x negate() const { return Sk2x(0) - *this; }
+ Sk2x negate() const { return Sk2x((T)0) - *this; }
Sk2x operator -() const { return this->negate(); }
Sk2x rsqrt() const; // Approximate 1/this->sqrt().
« no previous file with comments | « no previous file | src/core/Sk4x.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698