diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | error.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Thu Dec 15 17:40:28 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * error.c (rb_check_type): fix typo. + Thu Dec 15 14:48:35 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> * ext/strscan/strscan.c: use typed data with @@ -420,7 +420,7 @@ rb_check_type(VALUE x, int t) if (type->type == t) { const char *etype; - etype = builtin_type_name(xt); + etype = builtin_type_name(x); rb_raise(rb_eTypeError, "wrong argument type %s (expected %s)", etype, type->name); } |