diff options
author | thestig <thestig@chromium.org> | 2016-11-08 22:15:51 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-08 22:15:51 -0800 |
commit | 4f610efcf4e34779d27c5e822e639a984bab1c96 (patch) | |
tree | b6073ba17078622620e12401bca59aa7808f0052 /core/fxcrt | |
parent | 7b3252fa1f282c01707fc53d0ac347878dd0aebb (diff) | |
download | pdfium-4f610efcf4e34779d27c5e822e639a984bab1c96.tar.xz |
Define IsFloatEqual macro properly.
BUG=chromium:663253
Review-Url: https://codereview.chromium.org/2482373002
Diffstat (limited to 'core/fxcrt')
-rw-r--r-- | core/fxcrt/fx_system.h | 2 |
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". |