Enum representation shows 'foo | 0x10' instead of 'foo & ~0x10' #4402
Labels
Component: Core
Issue needs changes to the core
Effort: Trivial
Issue should take < 1 day
Impact: Medium
Issue is impactful with a bad, or no, workaround
Type: Bug
Issue is a non-crashing bug with repro steps
Milestone
Version and Platform (required):
Bug Description:
When Binary Ninja displays the value 0x23 as type
enum e : uint8_t { _0x33 = 0x33 }
, it shows_0x33 | 0x10
, when it should be_0x33 & ~0x10
or just0x23
.Steps To Reproduce:
0x23 0x33
.enum e : uint8_t { _0x33 = 0x33 }
enum e
for each byte.Additional Information:
Question: Is there some way to mark an enum as "not a bitfield" so Binary Ninja only uses named constants if there's an exact match?
The text was updated successfully, but these errors were encountered: