Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Aug 16, 2023
1 parent bb40248 commit c105cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elf/arch-riscv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ static std::optional<Extn> read_extn_string(std::string_view &str) {
static std::regex re(R"(^([a-z]+)(\d+)p(\d+))", flags);

std::cmatch m;
if (std::regex_search(str.begin(), str.end(), m, re)) {
if (std::regex_search(str.data(), str.data() + str.size(), m, re)) {
str = str.substr(m.length());
return Extn{m[1], (i64)std::stoul(m[2]), (i64)std::stoul(m[3])};
}
Expand Down

0 comments on commit c105cfd

Please sign in to comment.