chore(util/lean_path): compilation warning
This commit is contained in:
parent
e4ec1808f3
commit
fbc5f7a5fa
1 changed files with 1 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ void find_imports_core(std::string const & base, optional<unsigned> const & k,
|
|||
if (k)
|
||||
import = std::string(*k + 1, '.') + import;
|
||||
auto n = import.rfind(".default");
|
||||
if (n != -1 && n == import.size() - std::string(".default").size())
|
||||
if (n != static_cast<unsigned>(-1) && n == import.size() - std::string(".default").size())
|
||||
import = import.substr(0, n);
|
||||
imports.push_back({import, file});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue