aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index 4a4565e7b1..e3348dc7b5 100644
--- a/error.c
+++ b/error.c
@@ -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);
}