summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-11-08 22:15:51 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-08 22:15:51 -0800
commit4f610efcf4e34779d27c5e822e639a984bab1c96 (patch)
treeb6073ba17078622620e12401bca59aa7808f0052
parent7b3252fa1f282c01707fc53d0ac347878dd0aebb (diff)
downloadpdfium-4f610efcf4e34779d27c5e822e639a984bab1c96.tar.xz
Define IsFloatEqual macro properly.
BUG=chromium:663253 Review-Url: https://codereview.chromium.org/2482373002
-rw-r--r--core/fxcrt/fx_system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/fx_system.h b/core/fxcrt/fx_system.h
index d3f488a33a..c31bef974f 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))
// PDFium string sizes are limited to 2^31-1, and the value is signed to
// allow -1 as a placeholder for "unknown".