summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-05-26 13:24:47 -0400
committerDavid Robillard <d@drobilla.net>2022-05-26 13:24:47 -0400
commit5575f0631708e3d2969654459a10ecaeaa3fe50f (patch)
tree6f3007111bad10490098ba722a37fb616741b4f2 /src
parent084fcc82a77a6e6fe36dc3b3abf92032766ab3d5 (diff)
downloadsratom-5575f0631708e3d2969654459a10ecaeaa3fe50f.tar.gz
sratom-5575f0631708e3d2969654459a10ecaeaa3fe50f.tar.bz2
sratom-5575f0631708e3d2969654459a10ecaeaa3fe50f.zip
Suppress new warnings in clang-tidy 13
Diffstat (limited to 'src')
-rw-r--r--src/sratom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sratom.c b/src/sratom.c
index 53fa017..e4d306b 100644
--- a/src/sratom.c
+++ b/src/sratom.c
@@ -334,11 +334,11 @@ sratom_write(Sratom* sratom,
new_node = true;
datatype = serd_node_from_string(SERD_URI, USTR(LV2_MIDI__MidiEvent));
- const size_t len = size * 2;
+ const size_t len = size * 2ul;
uint8_t* const str = (uint8_t*)calloc(len + 1, 1);
for (uint32_t i = 0; i < size; ++i) {
- snprintf((char*)str + (2 * i),
- len - (2 * i) + 1,
+ snprintf((char*)str + (2ul * i),
+ len - (2ul * i) + 1ul,
"%02X",
(unsigned)*((const uint8_t*)body + i));
}