summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-15 17:22:07 +0200
committerDavid Robillard <d@drobilla.net>2020-07-16 23:37:49 +0200
commitcec00731f59893ba0851bc5eb2187037c7b21dbf (patch)
tree3443d64207534b48533aa5a6a67aa2a750525c8a /src
parent3138cadd2e60eabb16822994c281ef4b73832d91 (diff)
downloadlilv-cec00731f59893ba0851bc5eb2187037c7b21dbf.tar.gz
lilv-cec00731f59893ba0851bc5eb2187037c7b21dbf.tar.bz2
lilv-cec00731f59893ba0851bc5eb2187037c7b21dbf.zip
Fix conversion warnings
Diffstat (limited to 'src')
-rw-r--r--src/plugin.c2
-rw-r--r--src/util.c2
-rw-r--r--src/world.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 0924109..a6919d5 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -353,7 +353,7 @@ lilv_plugin_load_ports_if_necessary(const LilvPlugin* const_plugin)
// Check sanity
for (uint32_t i = 0; i < plugin->num_ports; ++i) {
if (!plugin->ports[i]) {
- LILV_ERRORF("Plugin <%s> is missing port %d/%d\n",
+ LILV_ERRORF("Plugin <%s> is missing port %u/%u\n",
lilv_node_as_uri(plugin->plugin_uri), i, plugin->num_ports);
lilv_plugin_free_ports(plugin);
break;
diff --git a/src/util.c b/src/util.c
index 5ba450a..8758742 100644
--- a/src/util.c
+++ b/src/util.c
@@ -302,7 +302,7 @@ lilv_find_free_path(const char* in_path,
char* path = (char*)malloc(in_path_len + 7);
memcpy(path, in_path, in_path_len + 1);
- for (int i = 2; i < 1000000; ++i) {
+ for (unsigned i = 2; i < 1000000u; ++i) {
if (!exists(path, user_data)) {
return path;
}
diff --git a/src/world.c b/src/world.c
index cf859eb..fc4fc7e 100644
--- a/src/world.c
+++ b/src/world.c
@@ -345,7 +345,7 @@ const uint8_t*
lilv_world_blank_node_prefix(LilvWorld* world)
{
static char str[32];
- snprintf(str, sizeof(str), "%d", world->n_read_files++);
+ snprintf(str, sizeof(str), "%u", world->n_read_files++);
return (const uint8_t*)str;
}