summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dump.c1
-rw-r--r--src/fmt_fp.c9
-rw-r--r--src/string.c2
3 files changed, 4 insertions, 8 deletions
diff --git a/src/dump.c b/src/dump.c
index d9410ec18..2f2e5edcb 100644
--- a/src/dump.c
+++ b/src/dump.c
@@ -819,7 +819,6 @@ write_rite_binary_header(mrb_state *mrb, size_t binary_size, uint8_t *bin, uint8
uint32_t offset;
switch (flags & DUMP_ENDIAN_NAT) {
- default:
endian_big:
case DUMP_ENDIAN_BIG:
memcpy(header->binary_ident, RITE_BINARY_IDENT, sizeof(header->binary_ident));
diff --git a/src/fmt_fp.c b/src/fmt_fp.c
index a634edb34..b467435a3 100644
--- a/src/fmt_fp.c
+++ b/src/fmt_fp.c
@@ -90,12 +90,9 @@ fmt_u(uint32_t x, char *s)
typedef char compiler_defines_long_double_incorrectly[9-(int)sizeof(long double)];
#endif
-#if (defined(__CYGWIN32__) || defined(__NetBSD__) || defined(mips)) && !defined(__linux__)
-static long double
-frexpl (long double x, int *eptr)
-{
- return frexp(x, eptr);
-}
+#if ((defined(__CYGWIN32__) || defined(__NetBSD__) || defined(mips)) && !defined(__linux__)) || defined(__android__)
+#undef frexpl
+#define frexpl frexp
#endif
static int
diff --git a/src/string.c b/src/string.c
index 757317bdc..45ba38c9d 100644
--- a/src/string.c
+++ b/src/string.c
@@ -1927,7 +1927,7 @@ mrb_cstr_to_inum(mrb_state *mrb, const char *str, int base, int badcheck)
}
break;
} /* end of switch (base) { */
- if (*str == '0') { /* squeeze preceeding 0s */
+ if (*str == '0') { /* squeeze preceding 0s */
uscore = 0;
while ((c = *++str) == '0' || c == '_') {
if (c == '_') {