From 4f610efcf4e34779d27c5e822e639a984bab1c96 Mon Sep 17 00:00:00 2001 From: thestig Date: Tue, 8 Nov 2016 22:15:51 -0800 Subject: Define IsFloatEqual macro properly. BUG=chromium:663253 Review-Url: https://codereview.chromium.org/2482373002 --- core/fxcrt/fx_system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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". -- cgit v1.2.3