summaryrefslogtreecommitdiff
path: root/ext/tk/tcltklib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/tcltklib.c')
-rw-r--r--ext/tk/tcltklib.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/tk/tcltklib.c b/ext/tk/tcltklib.c
index ea6ffadc506..430c934dc82 100644
--- a/ext/tk/tcltklib.c
+++ b/ext/tk/tcltklib.c
@@ -1904,11 +1904,7 @@ set_max_block_time(self, time)
break;
default:
- {
- VALUE tmp = rb_funcallv(time, ID_inspect, 0, 0);
- rb_raise(rb_eArgError, "invalid value for time: '%s'",
- StringValuePtr(tmp));
- }
+ rb_raise(rb_eArgError, "invalid value for time: '%+"PRIsVALUE"'", time);
}
Tcl_SetMaxBlockTime(&tcl_time);