aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-01-06 16:18:30 +0100
committerDavid Robillard <d@drobilla.net>2019-01-06 16:18:30 +0100
commitba72f5a3c27e51a14b43efb2c44231b6e299ba3f (patch)
tree68c3df6393c5d5da5c106b95c9b251a4b5fdbe94 /src
parent026989b21386d942b3321796bdaa8e576a16b1cb (diff)
downloadserd-ba72f5a3c27e51a14b43efb2c44231b6e299ba3f.tar.gz
serd-ba72f5a3c27e51a14b43efb2c44231b6e299ba3f.tar.bz2
serd-ba72f5a3c27e51a14b43efb2c44231b6e299ba3f.zip
Fix serd_node_new_decimal() on Windows
Diffstat (limited to 'src')
-rw-r--r--src/node.c2
1 files changed, 1 insertions, 1 deletions
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;