aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-06 10:34:54 +0200
committerDavid Robillard <d@drobilla.net>2020-07-06 10:34:54 +0200
commited4c28d84c9411e46a0a53efc97c4966ef7ad3d7 (patch)
treed98ea38fd6f2f2f90341043adc68a3aa3de481eb /src/node.c
parentdeb20148f2f92ec6b4b0c1f2210fef0040f749f2 (diff)
downloadserd-ed4c28d84c9411e46a0a53efc97c4966ef7ad3d7.tar.gz
serd-ed4c28d84c9411e46a0a53efc97c4966ef7ad3d7.tar.bz2
serd-ed4c28d84c9411e46a0a53efc97c4966ef7ad3d7.zip
Fix format conversion warnings
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/node.c b/src/node.c
index 5a84237d..ea9168bd 100644
--- a/src/node.c
+++ b/src/node.c
@@ -191,7 +191,10 @@ serd_node_new_file_uri(const uint8_t* path,
serd_chunk_sink(path + i, 1, &chunk);
} else {
char escape_str[4] = { '%', 0, 0, 0 };
- snprintf(escape_str + 1, sizeof(escape_str) - 1, "%X", path[i]);
+ snprintf(escape_str + 1,
+ sizeof(escape_str) - 1,
+ "%X",
+ (unsigned)path[i]);
serd_chunk_sink(escape_str, 3, &chunk);
}
}