summaryrefslogtreecommitdiff
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
commitda01eb93e4ac7886389b48d5b47d7292e16acf9c (patch)
treed1ef6af4c23f691350a310eb45627269ca2a7509 /eval.c
parent8b242a0d09bec00b2cfc1c779edaaac453bf05bc (diff)
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 */