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

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

Issue 2733503002: Fix the conditional operator's usage (Closed)
Patch Set: 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 | no next file » | 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..a5306108c22c8d6d3830a0bdbfb1a6bdfcee4849 100644
--- a/third_party/WebKit/Source/platform/geometry/FloatQuad.cpp
+++ b/third_party/WebKit/Source/platform/geometry/FloatQuad.cpp
@@ -81,8 +81,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();
Avi (use Gerrit) 2017/03/03 02:03:44 It seems likely that they meant return std::signb
+ return std::numeric_limits<int>::min();
}
return value;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698