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

Fix compiler errors with upvalues.

This commit is contained in:
bakpakin
2018-01-13 14:08:42 -05:00
parent 94a4970053
commit d9f24effac
5 changed files with 100 additions and 5 deletions

View File

@@ -107,7 +107,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, "%.17g", x);
int count = snprintf((char *) buf, DST_BUFSIZE, "%.17gr", x);
return (int32_t) count;
}