Skip to content

Commit

Permalink
Implement OS.bits for ARM (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
samueldr committed Aug 6, 2020
1 parent 15e3f32 commit 89523f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os.c
Expand Up @@ -75,9 +75,9 @@ mrb_os_bits(mrb_state *mrb, mrb_value self)
}

if (strcmp(str, "machine") == 0) {
#if defined(__x86_64__) || defined(_WIN64)
#if defined(__x86_64__) || defined(__aarch64__) || defined(_WIN64)
return mrb_fixnum_value(64);
#elif defined(__i386) || defined(_WIN32)
#elif defined(__i386) || defined(__arm__) || defined(_WIN32)
return mrb_fixnum_value(32);
#endif
}
Expand Down

0 comments on commit 89523f3

Please sign in to comment.