Skip to content

Visual Studio 2022: fmt/format-inl.h(1145,60): warning C4310: cast truncates constant value #3287

Description

@chronoxor

Visual Studio 2022 generates the following warning in /W4 pedantic mode:

fmt/format-inl.h(1145,60): warning C4310: cast truncates constant value

On the following code fragment:

const uint32_t mod_inv_25 = uint32_t(uint64_t(mod_inv_5) * mod_inv_5);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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