Skip to content

Commit

Permalink
Cherry pick 51be7db from jdk21u history.
Browse files Browse the repository at this point in the history
8211804: Constant AO_UNUSED_MBZ uses left shift of negative value
Use unsigned shift.
  • Loading branch information
wasabii committed Dec 18, 2024
1 parent cbbce3f commit da7fb6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ enum {
AO_HAVE_FIELD_FLAGS_HI = 1<<10,
AO_HAVE_METHOD_FLAGS_HI = 1<<11,
AO_HAVE_CODE_FLAGS_HI = 1<<12,
AO_UNUSED_MBZ = (-1)<<13, // options bits reserved for future use.
AO_UNUSED_MBZ = (int)((~0U) << 13), // options bits reserved for future use.

#define ARCHIVE_BIT_DO(F) \
F(AO_HAVE_SPECIAL_FORMATS) \
Expand Down

0 comments on commit da7fb6c

Please sign in to comment.