From cec00731f59893ba0851bc5eb2187037c7b21dbf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 15 Jul 2020 17:22:07 +0200 Subject: Fix conversion warnings --- src/plugin.c | 2 +- src/util.c | 2 +- src/world.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; } -- cgit v1.2.1