From ba72f5a3c27e51a14b43efb2c44231b6e299ba3f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 6 Jan 2019 16:18:30 +0100 Subject: Fix serd_node_new_decimal() on Windows --- src/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/node.c b/src/node.c index a63d350c..1a7f2fbf 100644 --- a/src/node.c +++ b/src/node.c @@ -290,7 +290,7 @@ serd_node_new_decimal(double d, unsigned frac_digits) *s++ = '0'; node.n_bytes = node.n_chars = (s - buf); } else { - uint64_t frac = lround(frac_part * pow(10.0, (int)frac_digits)); + uint64_t frac = llround(frac_part * pow(10.0, (int)frac_digits)); s += frac_digits - 1; unsigned i = 0; -- cgit v1.2.1