mirror of
https://github.com/janet-lang/janet
synced 2025-10-22 11:17:40 +00:00
Add test nanbox implementation. Works for 32 bit and 64 bit x86
This commit is contained in:
@@ -141,7 +141,7 @@ const uint8_t *dst_cstring(const char *str) {
|
||||
#define DST_BUFSIZE 36
|
||||
|
||||
static uint32_t real_to_string_impl(uint8_t *buf, double x) {
|
||||
int count = snprintf((char *) buf, DST_BUFSIZE, "%.21gF", x);
|
||||
int count = snprintf((char *) buf, DST_BUFSIZE, "%.21g", x);
|
||||
return (uint32_t) count;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user