diff options
author | David Robillard <d@drobilla.net> | 2022-10-23 21:48:43 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-10-23 21:48:43 -0400 |
commit | 09f40d2e1e5f987b97410535435a7a1db7323511 (patch) | |
tree | f1c41534a2cfbb611158395318805692ed575085 /src/node.c | |
parent | 83cd85ce89590ab06e78a3ff0adf10f636c4103e (diff) | |
download | serd-09f40d2e1e5f987b97410535435a7a1db7323511.tar.gz serd-09f40d2e1e5f987b97410535435a7a1db7323511.tar.bz2 serd-09f40d2e1e5f987b97410535435a7a1db7323511.zip |
Use uppercase integer literal suffixes
Diffstat (limited to 'src/node.c')
-rw-r--r-- | src/node.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -323,7 +323,7 @@ serd_node_new_decimal(const double d, const unsigned frac_digits) for (; i < frac_digits - 1 && !(frac % 10); ++i, --s, frac /= 10) { } - node.n_bytes = node.n_chars = (size_t)(s - buf) + 1u; + node.n_bytes = node.n_chars = (size_t)(s - buf) + 1U; // Write digits from last trailing zero to decimal point for (; i < frac_digits; ++i) { @@ -350,7 +350,7 @@ serd_node_new_integer(const int64_t i) ++s; } - node.n_bytes = node.n_chars = (size_t)(s - buf) + 1u; + node.n_bytes = node.n_chars = (size_t)(s - buf) + 1U; // Write integer part (right to left) do { |