summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorFrank Celler <[email protected]>2012-04-20 06:35:52 +0200
committerFrank Celler <[email protected]>2012-04-20 06:35:52 +0200
commitb831887a253724bcaeb0bcc7976fb456ace7a29f (patch)
treea22f3228b0f27ed3b585263b54dd2e8a4afab016 /src
parent5d9945ba629c4e8d5aa13e076f1cd1dd242767cf (diff)
downloadmruby-b831887a253724bcaeb0bcc7976fb456ace7a29f.tar.gz
mruby-b831887a253724bcaeb0bcc7976fb456ace7a29f.zip
linux compiler does not like double use of va_list
Diffstat (limited to 'src')
-rw-r--r--src/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error.c b/src/error.c
index 9dbfc972f..a671c6bbd 100644
--- a/src/error.c
+++ b/src/error.c
@@ -199,8 +199,8 @@ mrb_raise(mrb_state *mrb, struct RClass *c, const char *fmt, ...)
va_start(args, fmt);
vsnprintf(buf, 256, fmt, args);
- mrb_raise_va(mrb, c, fmt, args);
va_end(args);
+ mrb_exc_raise(mrb, mrb_exc_new(mrb, c, buf, strlen(buf)));
}
void