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

Unified Diff: core/fxcrt/fx_system.h

Issue 2482373002: Define IsFloatEqual macro properly. (Closed)
Patch Set: Created 4 years, 1 month 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: core/fxcrt/fx_system.h
diff --git a/core/fxcrt/fx_system.h b/core/fxcrt/fx_system.h
index d3f488a33abc94f29147b65c5cb4a6f85cf30c54..c31bef974fe06f42d63d66d2d5751596f6d62e32 100644
--- a/core/fxcrt/fx_system.h
+++ b/core/fxcrt/fx_system.h
@@ -76,7 +76,7 @@ typedef wchar_t FX_WCHAR; // Keep, maybe bad platform wchars.
#define IsFloatZero(f) ((f) < 0.0001 && (f) > -0.0001)
#define IsFloatBigger(fa, fb) ((fa) > (fb) && !IsFloatZero((fa) - (fb)))
#define IsFloatSmaller(fa, fb) ((fa) < (fb) && !IsFloatZero((fa) - (fb)))
-#define IsFloatEqual(fa, fb) IsFloatZero(fa - fb)
+#define IsFloatEqual(fa, fb) IsFloatZero((fa) - (fb))
dsinclair 2016/11/09 03:33:23 Should these just be real methods instead of macro
Lei Zhang 2016/11/09 05:34:09 We can, but the behavior of this CL won't change f
// PDFium string sizes are limited to 2^31-1, and the value is signed to
// allow -1 as a placeholder for "unknown".
« 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