From b71aa8f9e8b7df5327b50c5dc02eaf91d2b74161 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Fri, 7 Oct 2016 15:42:05 -0700 Subject: [PATCH] wrealpath: fix compiler warning unsigned long -> int conversion --- src/wutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wutil.cpp b/src/wutil.cpp index 24069b398..c21fa199d 100644 --- a/src/wutil.cpp +++ b/src/wutil.cpp @@ -348,7 +348,7 @@ wchar_t *wrealpath(const wcstring &pathname, wchar_t *resolved_path) { if (narrow_res) { real_path.append(narrow_res); } else { - int pathsep_idx = narrow_path.rfind('/'); + ssize_t pathsep_idx = narrow_path.rfind('/'); if (pathsep_idx == 0) { // If the only pathsep is the first character then it's an absolute path with a // single path component and thus doesn't need conversion.