mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
st/oxr: Fix conversion warnings
This commit is contained in:
parent
243c2e5326
commit
f8bce0b213
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue