summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-10 10:40:10 -0500
committerpommicket <pommicket@gmail.com>2023-01-10 10:40:10 -0500
commitb0fe15647d196081d801db574fa074ff77e46f5f (patch)
tree786d4b15493ab469811fc7cd139f5d664f414644 /util.c
parentedd5188dfba93b8ffe376d0c194804f35f43dcaa (diff)
linux build , etc.
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index ef96d29..e40f258 100644
--- a/util.c
+++ b/util.c
@@ -128,7 +128,7 @@ bool str_has_prefix(const char *str, const char *prefix) {
bool str_has_path_prefix(const char *path, const char *prefix) {
size_t prefix_len = strlen(prefix);
- for (int i = 0; i < prefix_len; ++i) {
+ for (size_t i = 0; i < prefix_len; ++i) {
if (strchr(ALL_PATH_SEPARATORS, path[i]) && strchr(ALL_PATH_SEPARATORS, prefix[i]))
continue; // treat all path separators as the same
if (prefix[i] != path[i])