Skip to content

Commit

Permalink
[mono] Fix warning in class-internals.h (#91314)
Browse files Browse the repository at this point in the history
It was supposed to be fixed in #90068 but we should've used `guint` for the one-bit bitfield.
  • Loading branch information
akoeplinger authored Aug 30, 2023
1 parent 3ce2c88 commit 23345fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mono/mono/metadata/class-internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -504,11 +504,11 @@ struct _MonoGenericContainer {
int type_argc : 29; // Per the ECMA spec, this value is capped at 16 bits
/* If true, we're a generic method, otherwise a generic type definition. */
/* Invariant: parent != NULL => is_method */
gint is_method : 1;
guint is_method : 1;
/* If true, this container has no associated class/method and only the image is known. This can happen:
1. For the special anonymous containers kept by MonoImage.
2. When user code creates a generic parameter via SRE, but has not yet set an owner. */
gint is_anonymous : 1;
guint is_anonymous : 1;
/* Our type parameters. If this is a special anonymous container (case 1, above), this field is not valid, use mono_metadata_create_anon_gparam () */
MonoGenericParamFull *type_params;
};
Expand Down

0 comments on commit 23345fb

Please sign in to comment.