diff options
author | David Robillard <d@drobilla.net> | 2020-07-15 17:22:07 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-16 23:37:49 +0200 |
commit | cec00731f59893ba0851bc5eb2187037c7b21dbf (patch) | |
tree | 3443d64207534b48533aa5a6a67aa2a750525c8a /src | |
parent | 3138cadd2e60eabb16822994c281ef4b73832d91 (diff) | |
download | lilv-cec00731f59893ba0851bc5eb2187037c7b21dbf.tar.gz lilv-cec00731f59893ba0851bc5eb2187037c7b21dbf.tar.bz2 lilv-cec00731f59893ba0851bc5eb2187037c7b21dbf.zip |
Fix conversion warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/plugin.c | 2 | ||||
-rw-r--r-- | src/util.c | 2 | ||||
-rw-r--r-- | src/world.c | 2 |
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; @@ -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; } |