Skip to content

Commit

Permalink
Shut up a gcc warning
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jan 26, 2023
1 parent f4f0f8a commit 37b4a9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libexpr/paths.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ SourcePath EvalState::decodePath(std::string_view s, PosIdx pos)

try {
auto slash = s.find('/');
if (slash > 20) throw std::invalid_argument("");
size_t number = std::stoi(std::string(s.substr(0, slash)), nullptr, 16);
s = slash == s.npos ? "" : s.substr(slash);

Expand Down

0 comments on commit 37b4a9e

Please sign in to comment.