aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-02-10 15:28:21 -0500
committerDavid Robillard <d@drobilla.net>2025-02-10 15:28:21 -0500
commitc97307d6d95a047fc5533b80f0656e4f04faefdb (patch)
treeb7a87f7ae515f255a02093b67908fb4a1b58b5c8 /src/node.c
parent8d87a6aa12745d01abb8ef8468b8e3f258af1996 (diff)
downloadserd-c97307d6d95a047fc5533b80f0656e4f04faefdb.tar.gz
serd-c97307d6d95a047fc5533b80f0656e4f04faefdb.tar.bz2
serd-c97307d6d95a047fc5533b80f0656e4f04faefdb.zip
Fully parenthesize expressions
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.c b/src/node.c
index 5016adec..d925fed1 100644
--- a/src/node.c
+++ b/src/node.c
@@ -288,7 +288,7 @@ serd_node_new_decimal(const double d, const unsigned frac_digits)
char* t = s - 1;
uint64_t dec = (uint64_t)int_part;
do {
- *t-- = (char)('0' + dec % 10);
+ *t-- = (char)('0' + (dec % 10));
} while ((dec /= 10) > 0);
*s++ = '.';