We were passing a sentinel maximum enum value to `ENUM_OPERATOR`, which is incorrect. In particular, this caused the bitwise-not operator to work incorrectly and produce invalid values. Pull Request: https://projects.blender.org/blender/blender/pulls/122711