aboutsummaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-09 05:05:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-09 05:05:10 +0000
commit1f0686eb75ecb319e68001a28c4827e1f3521476 (patch)
tree0477bf19c86dcc83eaf8c87c3910aa9810f4cada /ext
parentf90377dc9bf5adf6a0ec6f7b2c7b14264114fbca (diff)
downloadruby-1f0686eb75ecb319e68001a28c4827e1f3521476.tar.gz
tcltklib.c: use PRIsVALUE [ci skip]
* ext/tk/tcltklib.c (set_max_block_time): use PRIsVALUE to get rid of dangling pointer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-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 ea6ffadc50..430c934dc8 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);