Skip to content

Bitwise "or" used, while in other places an addition is used for this conversion #6

@Darthsack

Description

@Darthsack

return j | (i * Constants.ChunkSize) | (k * Constants.ChunkSizeSquared);

This could cause some confusion if someone changes the chunk size without making sure it aligns with bit shifts.

The easiest solution would be to change this to also be an addition instead, but the better for compute would be to change them all to bit-shift/ bitwise operations

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