st/oxr: Fix conversion warnings

This commit is contained in:
Jakob Bornecrantz 2022-05-01 13:55:24 +01:00
parent 243c2e5326
commit f8bce0b213
2 changed files with 4 additions and 3 deletions

View file

@ -26,8 +26,9 @@ setup_paths(struct oxr_logger *log,
struct binding_template *templ,
struct oxr_binding *binding)
{
size_t count = 0;
uint32_t count = 0;
while (templ->paths[count] != NULL) {
assert(count != UINT32_MAX);
count++;
}

View file

@ -191,8 +191,8 @@ oxr_input_transform_process(const struct oxr_input_transform *transform,
static bool
ends_with(const char *str, const char *suffix)
{
int len = strlen(str);
int suffix_len = strlen(suffix);
size_t len = strlen(str);
size_t suffix_len = strlen(suffix);
return (len >= suffix_len) && (0 == strcmp(str + (len - suffix_len), suffix));
}