aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 6b35dd79..1f8cb115 100644
--- a/src/node.c
+++ b/src/node.c
@@ -219,7 +219,7 @@ serd_node_new_uri(const SerdURI* uri, const SerdURI* base, SerdURI* out)
static inline unsigned
serd_digits(double abs)
{
- const double lg = ceil(log10(abs + 1.0));
+ const double lg = ceil(log10(floor(abs) + 1.0));
return lg < 1.0 ? 1U : (unsigned)lg;
}