Merge: core: implement `Float::to_precision` in C without callbacks
authorJean Privat <jean@pryen.org>
Tue, 17 Oct 2017 20:09:26 +0000 (16:09 -0400)
committerJean Privat <jean@pryen.org>
Tue, 17 Oct 2017 20:09:26 +0000 (16:09 -0400)
Fix #2561, int overflows in `Float::to_precision` with a high float value or a high precision.

The native implementation was removed by 9cb09ccf to support the interpreter. Since then, we added support for the FFI in the interpreter so we can bring back a native implementation.

Pull-Request: #2562


Trivial merge