diff options
author | Lars Næsbye Christensen <lars@naesbye.dk> | 2024-02-10 22:37:52 +0100 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-02-12 23:17:22 +0200 |
commit | 70f8dc7a4f4be217fea5439e474fc75e567c23c5 (patch) | |
tree | a55dacb2ea41b1fcc43b0bf193e8b6846abb0630 /indra/llcommon/is_approx_equal_fraction.h | |
parent | 04a02e83e9dcc29d4649e8003d523621b5119d7b (diff) |
miscellaneous: BOOL (int) to real bool
Diffstat (limited to 'indra/llcommon/is_approx_equal_fraction.h')
-rw-r--r-- | indra/llcommon/is_approx_equal_fraction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llcommon/is_approx_equal_fraction.h b/indra/llcommon/is_approx_equal_fraction.h index 4a9b2e2725..e86d58b70f 100644 --- a/indra/llcommon/is_approx_equal_fraction.h +++ b/indra/llcommon/is_approx_equal_fraction.h @@ -45,7 +45,7 @@ template <typename FTYPE> inline BOOL is_approx_equal_fraction_impl(FTYPE x, FTYPE y, U32 frac_bits) { - BOOL ret = TRUE; + BOOL ret = true; FTYPE diff = (FTYPE) fabs(x - y); S32 diffInt = (S32) diff; @@ -58,7 +58,7 @@ inline BOOL is_approx_equal_fraction_impl(FTYPE x, FTYPE y, U32 frac_bits) // based on the number of bits used for packing decimal portion. if (diffInt != 0 || diffFracTolerance > 1) { - ret = FALSE; + ret = false; } return ret; |