diff options
| author | cremno <[email protected]> | 2014-01-31 16:06:45 +0100 |
|---|---|---|
| committer | cremno <[email protected]> | 2014-01-31 18:00:36 +0100 |
| commit | 4507985c3ea2b3a7d14745f1f432e544ddeafe93 (patch) | |
| tree | 8dce9e42e85ea6a953b37b7dcce73ce56c277fe4 /src/string.c | |
| parent | 7c9a1accff4c42ec781f14b1ba5abaf0ad1bb037 (diff) | |
| download | mruby-4507985c3ea2b3a7d14745f1f432e544ddeafe93.tar.gz mruby-4507985c3ea2b3a7d14745f1f432e544ddeafe93.zip | |
use mrb_bool, FALSE and TRUE more
It doesn't matter to me if one is using FALSE/TRUE instead of 1/0
but I prefer a type (alias) which emphasizes boolean vars to int.
I changed 1/0 to FALSE/TRUE anyway.
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/string.c b/src/string.c index 96a625802..515e3fa47 100644 --- a/src/string.c +++ b/src/string.c @@ -2005,7 +2005,7 @@ mrb_string_value_cstr(mrb_state *mrb, mrb_value *ptr) } mrb_value -mrb_str_to_inum(mrb_state *mrb, mrb_value str, int base, int badcheck) +mrb_str_to_inum(mrb_state *mrb, mrb_value str, int base, mrb_bool badcheck) { char *s; int len; @@ -2068,7 +2068,7 @@ mrb_str_to_i(mrb_state *mrb, mrb_value self) } double -mrb_cstr_to_dbl(mrb_state *mrb, const char * p, int badcheck) +mrb_cstr_to_dbl(mrb_state *mrb, const char * p, mrb_bool badcheck) { char *end; double d; @@ -2137,7 +2137,7 @@ bad: } double -mrb_str_to_dbl(mrb_state *mrb, mrb_value str, int badcheck) +mrb_str_to_dbl(mrb_state *mrb, mrb_value str, mrb_bool badcheck) { char *s; int len; |
