diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-10-26 17:11:09 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-10-26 17:11:09 +0900 |
| commit | 3a668241bead302d3fa3db8a6b1915ec192ea274 (patch) | |
| tree | d70e9685859fbc7ea5a2a2ae4529337335719fb3 | |
| parent | 51213bfc7ddb66d5caeef6b1bd5b42333d2f28be (diff) | |
| download | mruby-3a668241bead302d3fa3db8a6b1915ec192ea274.tar.gz mruby-3a668241bead302d3fa3db8a6b1915ec192ea274.zip | |
nil/false should not be implicitly converted to integers in mrb_get_args(); close #1529
| -rw-r--r-- | src/class.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/class.c b/src/class.c index 2745f9820..bcbd42c53 100644 --- a/src/class.c +++ b/src/class.c @@ -576,9 +576,6 @@ mrb_get_args(mrb_state *mrb, const char *format, ...) *p = (mrb_int)f; } break; - case MRB_TT_FALSE: - *p = 0; - break; default: *p = mrb_fixnum(mrb_Integer(mrb, *sp)); break; |
