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 27, 2023
1 parent 0b0b022 commit d8b4c0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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
7 changes: 2 additions & 5 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,12 +223,9 @@ 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) {
if (*(state->mangled_cur) == '\0') {
++state->mangled_cur;
return true;
}
Expand Down

0 comments on commit d8b4c0a

Please sign in to comment.