[libcxx-commits] [PATCH] D66836: [libc++] Add `__truncating_cast` for safely casting float types to integers
David Majnemer via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Aug 28 17:35:41 PDT 2019
majnemer added inline comments.
================
Comment at: test/libcxx/numerics/truncating_cast.pass.cpp:12
+// Test the conversion function that truncates floating point types to the
+// closes representable value for the specified integer type, or
+// numeric_limits<IntT>::max()/min() if the value isn't representable.
----------------
closes -> closest
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66836/new/
https://reviews.llvm.org/D66836
More information about the libcxx-commits
mailing list