Skip to content

Commit

Permalink
build on aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
salvatoredipietro committed Jan 28, 2023
1 parent 0b0b022 commit 842917f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 5 additions & 2 deletions config.guess
Original file line number Diff line number Diff line change
Expand Up @@ -833,8 +833,11 @@ EOF
echo ${UNAME_MACHINE}-pc-minix
exit ;;
arm*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
aarch64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
avr32*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
Expand Down
5 changes: 1 addition & 4 deletions src/demangle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ static size_t StrLen(const char *str) {
// Returns true if "str" has at least "n" characters remaining.
static bool AtLeastNumCharsRemaining(const char *str, int n) {
for (int i = 0; i < n; ++i) {
if (str == '\0') {
if (str[i] == '\0') {
return false;
}
}
Expand Down Expand Up @@ -223,9 +223,6 @@ static bool ParseTwoCharToken(State *state, const char *two_char_token) {
// Returns true and advances "mangled_cur" if we find any character in
// "char_class" at "mangled_cur" position.
static bool ParseCharClass(State *state, const char *char_class) {
if (state->mangled_cur == '\0') {
return false;
}
const char *p = char_class;
for (; *p != '\0'; ++p) {
if (state->mangled_cur[0] == *p) {
Expand Down

0 comments on commit 842917f

Please sign in to comment.