diff options
author | David Robillard <d@drobilla.net> | 2024-12-11 19:05:02 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-12-11 19:05:02 -0500 |
commit | 2647831aa62c4b0cef27cec0eec42c5fc3ef412b (patch) | |
tree | c086618659608bf3c6d32b5dda740e090808590f | |
parent | 6ae2d5c4876ba82d1e08a16163a86128c17dc9db (diff) | |
download | sratom-main.tar.gz sratom-main.tar.bz2 sratom-main.zip |
-rw-r--r-- | src/sratom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sratom.c b/src/sratom.c index b51be47..fe48750 100644 --- a/src/sratom.c +++ b/src/sratom.c @@ -327,7 +327,7 @@ sratom_write(Sratom* sratom, const size_t len = (size_t)size * 2U; char* const str = (char*)calloc(len + 1, 1); - for (uint32_t i = 0U; i < size; ++i) { + for (size_t i = 0U; i < size; ++i) { const uint8_t byte = ((const uint8_t*)body)[i]; str[2U * i] = hex_chars[byte >> 4U]; str[2U * i + 1U] = hex_chars[byte & 0x0FU]; |