diff options
author | David Robillard <d@drobilla.net> | 2023-04-03 09:00:21 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-04-05 09:45:15 -0400 |
commit | 92f7c078250df898b24fce3af1ed6a9ae7d0c029 (patch) | |
tree | b05d5310404a54363b6c85313b377bff0ecbd708 /src/node.c | |
parent | 6afca7558bd9b074957aec421fd22868c5b6698e (diff) | |
download | serd-92f7c078250df898b24fce3af1ed6a9ae7d0c029.tar.gz serd-92f7c078250df898b24fce3af1ed6a9ae7d0c029.tar.bz2 serd-92f7c078250df898b24fce3af1ed6a9ae7d0c029.zip |
Fix sign conversion warnings
Diffstat (limited to 'src/node.c')
-rw-r--r-- | src/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -350,7 +350,7 @@ serd_node_new_decimal(const double d, const unsigned frac_digits) SerdNode serd_node_new_integer(const int64_t i) { - uint64_t abs_i = (i < 0) ? -i : i; + uint64_t abs_i = (uint64_t)((i < 0) ? -i : i); const unsigned digits = serd_digits((double)abs_i); char* buf = (char*)calloc(digits + 2, 1); SerdNode node = {(const uint8_t*)buf, 0, 0, 0, SERD_LITERAL}; |