Skip to content

Commit

Permalink
linux compiler does not like double use of va_list
Browse files Browse the repository at this point in the history
  • Loading branch information
fceller committed Apr 20, 2012
1 parent 5d9945b commit b831887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.c
Expand Up @@ -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
Expand Down

0 comments on commit b831887

Please sign in to comment.