ruby-changes:65100
From: xtkoba <ko1@a...>
Date: Mon, 1 Feb 2021 13:57:38 +0900 (JST)
Subject: [ruby-changes:65100] 0e5fbec816 (master): Fixed varargs in `rb_bug_without_die` [Bug #17603]
https://git.ruby-lang.org/ruby.git/commit/?id=0e5fbec816 From 0e5fbec81632968836da06dc50fca4948cae6d30 Mon Sep 17 00:00:00 2001 From: "xtkoba (Tee KOBAYASHI)" <xtkoba+ruby@g...> Date: Mon, 1 Feb 2021 01:16:14 +0000 Subject: Fixed varargs in `rb_bug_without_die` [Bug #17603] --- error.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/error.c b/error.c index cc861e0..ba0f258 100644 --- a/error.c +++ b/error.c @@ -766,7 +766,7 @@ die(void) https://github.com/ruby/ruby/blob/trunk/error.c#L766 } void -rb_bug_without_die(const char *fmt, ...) +rb_bug_without_die(const char *fmt, va_list args) { const char *file = NULL; int line = 0; @@ -775,7 +775,7 @@ rb_bug_without_die(const char *fmt, ...) https://github.com/ruby/ruby/blob/trunk/error.c#L775 file = rb_source_location_cstr(&line); } - report_bug(file, line, fmt, NULL); + report_bug_valist(file, line, fmt, NULL, args); } void -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/