blob: 525d2893b8a6c0bd9cf03c39f7bbb69312a48cca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- goffice/math/go-dtoa.c 2023-05-21 13:08:07.000000000 -0300
+++ goffice/math/go-dtoa.c.patched 2023-12-27 19:28:35.623167312 -0400
@@ -464,9 +464,14 @@
GString const *dec = go_locale_get_decimal();
g_string_set_size (dst, 53 + oldlen + dec->len);
- if (is_long)
+ if (is_long) {
+#ifdef GOFFICE_WITH_LONG_DOUBLE
n = go_ryu_ld2s_buffered_n (d, dst->str + oldlen);
- else
+#else
+ g_critical ("Compiled with long-double, then asked to use it");
+ return;
+#endif
+ } else
n = go_ryu_d2s_buffered_n ((double)d, dst->str + oldlen);
g_string_set_size (dst, oldlen + n);
dpos = strchr (dst->str + oldlen, '.');
|