summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-10-26 17:11:09 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2013-10-26 17:11:09 +0900
commit3a668241bead302d3fa3db8a6b1915ec192ea274 (patch)
treed70e9685859fbc7ea5a2a2ae4529337335719fb3 /src
parent51213bfc7ddb66d5caeef6b1bd5b42333d2f28be (diff)
downloadmruby-3a668241bead302d3fa3db8a6b1915ec192ea274.tar.gz
mruby-3a668241bead302d3fa3db8a6b1915ec192ea274.zip
nil/false should not be implicitly converted to integers in mrb_get_args(); close #1529
Diffstat (limited to 'src')
-rw-r--r--src/class.c3
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;