Fix build errors with -Wvla on Mac/iOS
Summary: Conv.h's detail::digitsEnough was not decomposing to a constexpr on iOS/Mac toolchains, which resulted in the following call becoming a runtime VLA: ``` char buffer[detail::digitsEnough<unsigned __int128>() + 1]; ``` Update to use `numeric_limits<>::digits10`, which allows this function to evaluate at compile-time on iOS/Mac. Reviewed By: yfeldblum Differential Revision: D20440659 fbshipit-source-id: d086e367eec0d3b2f35465525cb7406e746e6df7
Showing
Please register or sign in to comment