gh-111178: fix UBSan failures in Objects/enumobject.c
#128246
+35
−22
Merged