Skip to content

error in FixedVersion to_int() #238

@mhosken

Description

@mhosken

I think the key line should be:

inline uint32_t to_int (void) const { return (major << (sizeof(FixedType) * 8)) + minor; }

sizeof() returns bytes and you are shifting by bits. This seems to make a failing test work now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions