Skip to content

Commit

Permalink
use member access, not type punning
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdageek authored and github-actions committed Aug 24, 2022
1 parent 7187145 commit 980767f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mono/mono/metadata/class-setup-vtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,8 @@ mono_class_setup_vtable_full (MonoClass *klass, GList *in_setup)
context = mono_class_get_context (klass);
type_token = mono_class_get_generic_class (klass)->container_class->type_token;
} else {
context = (MonoGenericContext *) mono_class_try_get_generic_container (klass); //FIXME is this a case of a try?
MonoGenericContainer *container = mono_class_try_get_generic_container (klass); //FIXME is this a case of a try?
context = container ? &container->context : NULL;
type_token = klass->type_token;
}

Expand Down

0 comments on commit 980767f

Please sign in to comment.