Skip to content

Validate integer casts for truncation #849

@philipc

Description

@philipc

We should use clippy::cast_possible_truncation to audit for truncation. This probably matters most in the write module where we support both 32-bit and 64-bit in the same code, so many values are u64 before writing. Also for table counts where we start with usize and often the file formats only support u16 or u32.

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