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

Unified Diff: third_party/WebKit/Source/platform/geometry/FloatQuad.cpp

Issue 2733503002: Fix the conditional operator's usage (Closed)
Patch Set: add unittests. Created 3 years, 10 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 | third_party/WebKit/Source/platform/geometry/FloatQuadTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/geometry/FloatQuad.cpp
diff --git a/third_party/WebKit/Source/platform/geometry/FloatQuad.cpp b/third_party/WebKit/Source/platform/geometry/FloatQuad.cpp
index 7fd34813bd85707a4dc8f8bc05e3e6731db72486..0a1c2b9a21b6a8a76ae4714e41b820fa7973c4f1 100644
--- a/third_party/WebKit/Source/platform/geometry/FloatQuad.cpp
+++ b/third_party/WebKit/Source/platform/geometry/FloatQuad.cpp
@@ -82,7 +82,7 @@ inline bool isPointInTriangle(const FloatPoint& p,
static inline float saturateInf(float value) {
if (UNLIKELY(std::isinf(value))) {
return std::signbit(value) ? std::numeric_limits<int>::min()
- : std::numeric_limits<int>::min();
+ : std::numeric_limits<int>::max();
}
return value;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/geometry/FloatQuadTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698