1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-23 03:37:40 +00:00

More work on c library interface and io library.

This commit is contained in:
bakpakin
2018-01-15 20:14:21 -05:00
parent 3262316e60
commit 6df88f225f
17 changed files with 464 additions and 468 deletions

View File

@@ -21,7 +21,6 @@
*/
#include <dst/dst.h>
#include "strtod.h"
#include "gc.h"
#include "util.h"
@@ -107,7 +106,7 @@ const uint8_t *dst_cstring(const char *str) {
#define DST_BUFSIZE 36
static int32_t real_to_string_impl(uint8_t *buf, double x) {
int count = snprintf((char *) buf, DST_BUFSIZE, "%.17gr", x);
int count = snprintf((char *) buf, DST_BUFSIZE, "%.17g", x);
return (int32_t) count;
}