1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Get rid of a nasal demon

On platforms not having `typeof`, `ccan_container_off_var()` macro
subtracts the pointer variable from the member address pointed by that
variable.
This commit is contained in:
Nobuyoshi Nakada 2022-06-23 16:02:33 +09:00
parent 744d17ff6c
commit 2361a1a53e
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -2620,7 +2620,7 @@ autoload_apply_constants(VALUE _arguments)
struct autoload_load_arguments *arguments = (struct autoload_load_arguments*)_arguments;
struct autoload_const *autoload_const;
struct autoload_const *autoload_const = 0; // for ccan_container_off_var()
struct autoload_const *next;
// We use safe iteration here because `autoload_const_set` will eventually invoke