aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-11-06 02:13:28 -0800
committerChris Robinson <[email protected]>2015-11-06 02:13:28 -0800
commit3e992309a526e126e1c7f8f17c7f8b1142b8b606 (patch)
tree64485b5dffd2198c7079868e356cf682f311d314 /Alc
parentb6682ede6122032fd6f2e55000c1dad47bc57c41 (diff)
Use a more appropriate type in MatchFilter
Diffstat (limited to 'Alc')
-rw-r--r--Alc/helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index b4d3769a..c4a220ef 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -586,8 +586,8 @@ static int MatchFilter(const WCHAR *match, const WIN32_FIND_DATAW *fdata)
match, -1, name, -1) == CSTR_EQUAL;
else
{
- size_t len = p-match;
- ret = (size_t)lstrlenW(name) >= len;
+ int len = p-match;
+ ret = lstrlenW(name) >= len;
if(ret)
ret = CompareStringW(GetThreadLocale(), NORM_IGNORECASE,
match, len, name, len) == CSTR_EQUAL;