From f27ed98effff9891d28edc7119d45811bcedd510 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Sun, 19 Jan 2025 12:22:52 +0100 Subject: [ruby/prism] Freeze `Prism::VERSION` Closes https://github.com/ruby/prism/pull/3422 https://github.com/ruby/prism/commit/b488a84253 --- prism/extension.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prism/extension.c b/prism/extension.c index 7abd93ec62..dca2ee67a1 100644 --- a/prism/extension.c +++ b/prism/extension.c @@ -1372,7 +1372,7 @@ Init_prism(void) { /** * The version of the prism library. */ - rb_define_const(rb_cPrism, "VERSION", rb_str_new2(EXPECTED_PRISM_VERSION)); + rb_define_const(rb_cPrism, "VERSION", rb_str_freeze(rb_str_new_cstr(EXPECTED_PRISM_VERSION))); // First, the functions that have to do with lexing and parsing. rb_define_singleton_method(rb_cPrism, "lex", lex, -1); -- cgit v1.2.3