Skip to content

Display missing extra bits for multi-bit flags #315

@KodrAus

Description

@KodrAus

See: #310 (comment)

Given a flags type with two flags, BIT = 0b0000_0001 and MASK = 0b0001_1110, formatting the value 3 should result in BIT | 0x2, but instead it gives BIT. That extra bit gets lost, so doesn't roundtrip. The problem seems to be in the generated iter_names method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions