diff options
| author | Jean Boussier <byroot@ruby-lang.org> | 2026-06-20 15:23:57 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2026-06-20 13:24:31 +0000 |
| commit | 34d51d56e23f6b0ddad46baaa2a23dcf12d6a3bf (patch) | |
| tree | 811be74ebc648c27be254b76f868496952c74e45 | |
| parent | 3bec79ac7d791cadcbad1c7d1e409661409ae421 (diff) | |
https://github.com/ruby/json/commit/98925145d2
| -rw-r--r-- | ext/json/parser/parser.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/json/parser/parser.c b/ext/json/parser/parser.c index 948ea20f9e..1a407d8759 100644 --- a/ext/json/parser/parser.c +++ b/ext/json/parser/parser.c @@ -2059,8 +2059,7 @@ static void parser_config_init(JSON_ParserConfig *config, VALUE opts, VALUE self } else { VALUE keywords = rb_ary_join(args.unknown_keywords, rb_utf8_str_new_cstr(", ")); - rb_raise(rb_eArgError, "unknown keywords: %s", RSTRING_PTR(keywords)); - RB_GC_GUARD(keywords); + rb_raise(rb_eArgError, "unknown keywords: %" PRIsVALUE, keywords); } } } |
