summaryrefslogtreecommitdiffhomepage
path: root/src/error.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-04-11 23:45:15 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-04-11 23:45:15 +0900
commit92156b46194591ea7608ee9c587c6e29cacd25ea (patch)
treee5608925a6c061a27349d13bf363b700bfeb4f97 /src/error.c
parentf53b2601a0b2de6286106be237babcb510e07421 (diff)
parent824d3450c5c477342519f6df2df7bff08918ebef (diff)
downloadmruby-92156b46194591ea7608ee9c587c6e29cacd25ea.tar.gz
mruby-92156b46194591ea7608ee9c587c6e29cacd25ea.zip
Merge pull request #2044 from take-cheeze/const_argv
Qualify argv argument of API `const`.
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.c b/src/error.c
index be47e1618..c344509b9 100644
--- a/src/error.c
+++ b/src/error.c
@@ -353,7 +353,7 @@ set_backtrace(mrb_state *mrb, mrb_value info, mrb_value bt)
}
static mrb_value
-make_exception(mrb_state *mrb, int argc, mrb_value *argv, mrb_bool isstr)
+make_exception(mrb_state *mrb, int argc, const mrb_value *argv, mrb_bool isstr)
{
mrb_value mesg;
int n;
@@ -406,7 +406,7 @@ exception_call:
}
mrb_value
-mrb_make_exception(mrb_state *mrb, int argc, mrb_value *argv)
+mrb_make_exception(mrb_state *mrb, int argc, const mrb_value *argv)
{
return make_exception(mrb, argc, argv, TRUE);
}