From 42548885767fa1492886d87d17592e79bc00924e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 13 Sep 2019 09:38:35 -0700 Subject: Make IrSize unsigned --- alc/helpers.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'alc/helpers.cpp') diff --git a/alc/helpers.cpp b/alc/helpers.cpp index 84787637..46be5a3b 100644 --- a/alc/helpers.cpp +++ b/alc/helpers.cpp @@ -614,7 +614,7 @@ const PathNamePair &GetProcBinary() return ret; } - pathname.resize(len); + pathname.resize(static_cast(len)); } while(!pathname.empty() && pathname.back() == 0) pathname.pop_back(); @@ -651,8 +651,8 @@ static void DirectorySearch(const char *path, const char *ext, al::vectorsize(); + auto base = results->cend() - results->cbegin(); + const size_t extlen{strlen(ext)}; struct dirent *dirent; while((dirent=readdir(dir)) != nullptr) -- cgit v1.2.3