Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Safer JSON cast from floating point to integer across platforms
Summary: facebookincubator#8899 When casting from floating point to integer, first cast losslessly into `double`, then check if it can be cast into `int64_t` using boundaries from `folly::constexpr_clamp_cast`, if it fits then we do another integer to integer cast which is trivial. Reviewed By: bikramSingh91 Differential Revision: D54313505
- Loading branch information