mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 17:26:51 +08:00
Merge pull request #160 from huangqinjin/uint64-to-bool
Fix compile warning of unit64_t to bool
This commit is contained in:
commit
102e74891f
@ -125,8 +125,8 @@ void round_nearest_tie_even(adjusted_mantissa& am, int32_t shift, callback cb) n
|
||||
halfway = uint64_t(1) << (shift - 1);
|
||||
}
|
||||
uint64_t truncated_bits = am.mantissa & mask;
|
||||
uint64_t is_above = truncated_bits > halfway;
|
||||
uint64_t is_halfway = truncated_bits == halfway;
|
||||
bool is_above = truncated_bits > halfway;
|
||||
bool is_halfway = truncated_bits == halfway;
|
||||
|
||||
// shift digits into position
|
||||
if (shift == 64) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user