Skip to content

Shift right by 32 has undefined result in push() function #2

@teuer27-bit

Description

@teuer27-bit

Compress sometime returns wrong compressed array while it tries shift_buffer by 32.
I made quick workaround with:
if (static_cast(-bits) == 0x20) buffer = 0;
else
buffer = data >> static_cast< DataT >( -bits );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions