diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-26 00:46:09 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-26 00:46:09 -0700 |
| commit | 7b2969d2ce2b7e5150c2901a10e67d4c2da5e30f (patch) | |
| tree | 765aec0539b09b0ad9de327abfed99df7d6d429a /src/string.c | |
| parent | e350e311360a7bcda0d44ebf105415112bcd60dc (diff) | |
| parent | fd49ae0a848214b3c2041b88d561fe4192c61bfd (diff) | |
| download | mruby-7b2969d2ce2b7e5150c2901a10e67d4c2da5e30f.tar.gz mruby-7b2969d2ce2b7e5150c2901a10e67d4c2da5e30f.zip | |
Merge pull request #1072 from monaka/pr-cleanup-code-20130326
Cleanup code.
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 5 |
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}; |
