aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-02 23:25:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-02 23:25:42 +0000
commit102f614142b3b79c22492e55419d2acf13972168 (patch)
treed1ef6af4c23f691350a310eb45627269ca2a7509 /eval.c
parent6418542acba3a7bf763450e52f8577b12fba7e19 (diff)
downloadruby-102f614142b3b79c22492e55419d2acf13972168.tar.gz
eval.c: get rid of format-zero-length warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 9849827eef..40601cc6de 100644
--- a/eval.c
+++ b/eval.c
@@ -641,7 +641,7 @@ rb_exc_fatal(VALUE mesg)
void
rb_interrupt(void)
{
- rb_raise(rb_eInterrupt, "");
+ rb_exc_raise(rb_exc_new(rb_eInterrupt, 0, 0));
}
enum {raise_opt_cause, raise_max_opt}; /*< \private */