1
0
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:
bakpakin
2017-11-26 19:31:40 -05:00
parent 412d40d09f
commit 68f5ea4361
8 changed files with 619 additions and 382 deletions

View File

@@ -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;
}