mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
merge revision(s) 91a10c07579f282a94e4b5830feaeca87f9a7dd3: [Backport #21112]
Fix a typo in WeakKeyMap argument error [Bug #21112]
This commit is contained in:
parent
319c3c7038
commit
e3b16320e6
@ -11,7 +11,7 @@
|
||||
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
|
||||
#define RUBY_VERSION_TEENY 1
|
||||
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
|
||||
#define RUBY_PATCHLEVEL 24
|
||||
#define RUBY_PATCHLEVEL 25
|
||||
|
||||
#include "ruby/version.h"
|
||||
#include "ruby/internal/abi.h"
|
||||
|
||||
@ -859,7 +859,7 @@ wkmap_aset(VALUE self, VALUE key, VALUE val)
|
||||
TypedData_Get_Struct(self, struct weakkeymap, &weakkeymap_type, w);
|
||||
|
||||
if (!FL_ABLE(key) || SYMBOL_P(key) || RB_BIGNUM_TYPE_P(key) || RB_TYPE_P(key, T_FLOAT)) {
|
||||
rb_raise(rb_eArgError, "WeakKeyMap must be garbage collectable");
|
||||
rb_raise(rb_eArgError, "WeakKeyMap keys must be garbage collectable");
|
||||
UNREACHABLE_RETURN(Qnil);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user