wrealpath: fix compiler warning

unsigned long -> int conversion
This commit is contained in:
Aaron Gyes
2016-10-07 15:42:05 -07:00
parent 8b9102d9fe
commit b71aa8f9e8

View File

@@ -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.