# Nasty bug in binary enumerations

**URL:** <https://forum.xojo.com/t/nasty-bug-in-binary-enumerations/79940>\
**Category:** Bugs and Feature Requests\
**Created:** [April 11, 2024, 6:37am UTC](https://forum.xojo.com/t/nasty-bug-in-binary-enumerations/79940 "2024-04-11T06:37:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GarryPettet](https://forum.xojo.com/user_avatar/forum.xojo.com/garrypettet/32/31_2.png) [@GarryPettet](https://forum.xojo.com/u/GarryPettet)\
**Post date:** [April 11, 2024, 6:37am UTC](https://forum.xojo.com/t/nasty-bug-in-binary-enumerations/79940/1 "2024-04-11T06:37:33Z")

</div>

Feedback Case Number: [76076](https://tracker.xojo.com/xojoinc/xojo/-/issues/76076)

It appears that the maximum number of values within a binary enumeration is limited to 64, presumably because a `UInt64` backs them. If you enter more than 64 values the integer value of the later values is always `9223372036854775807` which could lead to nasty hard to find bugs where different enumerations equate to each other.

Here’s a screenshot:

 ![Screenshot 2024-04-11 at 07.31.52](https://forum.xojo.com/uploads/default/original/3X/3/e/3ef11091386d70b01e356bd084ec811daa81b13f.png)

The IDE should prevent you from entering more than 64 values within an enumeration if the enumeration type is binary.
