Browse Source

Fix serd_node_new_decimal() on Windows

zrythm_meson
David Robillard 4 years ago
parent
commit
ba72f5a3c2
  1. 2
      src/node.c

2
src/node.c

@ -290,7 +290,7 @@ serd_node_new_decimal(double d, unsigned frac_digits) @@ -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;

Loading…
Cancel
Save