Skip to content

Commit 23345fb

Browse files
authored
[mono] Fix warning in class-internals.h (#91314)
It was supposed to be fixed in #90068 but we should've used `guint` for the one-bit bitfield.
1 parent 3ce2c88 commit 23345fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mono/mono/metadata/class-internals.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,11 +504,11 @@ struct _MonoGenericContainer {
504504
int type_argc : 29; // Per the ECMA spec, this value is capped at 16 bits
505505
/* If true, we're a generic method, otherwise a generic type definition. */
506506
/* Invariant: parent != NULL => is_method */
507-
gint is_method : 1;
507+
guint is_method : 1;
508508
/* If true, this container has no associated class/method and only the image is known. This can happen:
509509
1. For the special anonymous containers kept by MonoImage.
510510
2. When user code creates a generic parameter via SRE, but has not yet set an owner. */
511-
gint is_anonymous : 1;
511+
guint is_anonymous : 1;
512512
/* Our type parameters. If this is a special anonymous container (case 1, above), this field is not valid, use mono_metadata_create_anon_gparam () */
513513
MonoGenericParamFull *type_params;
514514
};

0 commit comments

Comments
 (0)