linux compiler does not like double use of va_list

This commit is contained in:
Frank Celler
2012-04-20 06:35:52 +02:00
parent 5d9945ba62
commit b831887a25
+1 -1
View File
@@ -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