Skip to content

Commit f67be21

Browse files
committed
8211804: Constant AO_UNUSED_MBZ uses left shift of negative value
Use unsigned shift. Reviewed-by: phh, sgehwolf Backport-of: 44f94ee8bc6c934be1f4435227a81e6072361110
1 parent fcd1361 commit f67be21

File tree

1 file changed

+1
-1
lines changed
  • jdk/src/share/native/com/sun/java/util/jar/pack

1 file changed

+1
-1
lines changed

jdk/src/share/native/com/sun/java/util/jar/pack/constants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ enum {
223223
AO_HAVE_FIELD_FLAGS_HI = 1<<10,
224224
AO_HAVE_METHOD_FLAGS_HI = 1<<11,
225225
AO_HAVE_CODE_FLAGS_HI = 1<<12,
226-
AO_UNUSED_MBZ = (-1)<<13, // options bits reserved for future use.
226+
AO_UNUSED_MBZ = (int)((~0U)<<13), // options bits reserved for future use.
227227

228228
#define ARCHIVE_BIT_DO(F) \
229229
F(AO_HAVE_SPECIAL_FORMATS) \

0 commit comments

Comments
 (0)