mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
wrealpath: fix compiler warning
unsigned long -> int conversion
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user