summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2013-03-26 16:48:26 +0900
committerYukihiro Matz Matsumoto <[email protected]>2013-03-26 16:48:26 +0900
commit87d7fc616504dff16a22e24bc5fa67aae2be0d30 (patch)
tree28e7290b548a4aff1939b6289736efec5d7fcb4d /src/string.c
parenta7842b6451cdb20c9a5aeebf81387e538aa0facf (diff)
parent2d91803528d14b39868fa3c16f9293d1f34e675c (diff)
downloadmruby-87d7fc616504dff16a22e24bc5fa67aae2be0d30.tar.gz
mruby-87d7fc616504dff16a22e24bc5fa67aae2be0d30.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/string.c b/src/string.c
index 79c40e9cc..65f21a091 100644
--- a/src/string.c
+++ b/src/string.c
@@ -2068,9 +2068,6 @@ mrb_str_sub(mrb_state *mrb, mrb_value self)
mrb_value
mrb_cstr_to_inum(mrb_state *mrb, const char *str, int base, int badcheck)
{
- #define BDIGIT unsigned int
- #define BDIGIT_DBL unsigned long
-
char *end;
char sign = 1;
int c;
@@ -2278,7 +2275,7 @@ mrb_cstr_to_dbl(mrb_state *mrb, const char * p, int badcheck)
char *end;
double d;
#if !defined(DBL_DIG)
- #define DBL_DIG 16
+# define DBL_DIG 16
#endif
enum {max_width = 20};