Skip to content

Commit

Permalink
fix aarch64 build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Oct 6, 2024
1 parent 3beec34 commit 99a28a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jobs:
distro: ubuntu22.04
install: |
apt-get update -q -y
apt-get install -y cmake make g++ ninja-build git
apt-get install -y cmake make g++ ninja-build git gcc-12
ln -s -f /usr/bin/gcc-12 /usr/bin/gcc
run: |
cmake -DCMAKE_CXX_STANDARD=20 -B build
cmake --build build
Expand Down
2 changes: 1 addition & 1 deletion include/ada/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ ada_really_inline constexpr std::string_view substring(const std::string& input,
abort();
}
#endif
return std::string_view(input.data() + pos1, pos2 - pos1);
return std::string_view(input.c_str() + pos1, pos2 - pos1);
}

/**
Expand Down

0 comments on commit 99a28a5

Please sign in to comment.