gh-111178: fix UBSan failures in Modules/_operator.c
#129785
+77
−54
Merged