Skip to content

Warning "conversion from ‘int’ to ‘float’ may change value" when using integer values #31

@klapstoelpiloot

Description

@klapstoelpiloot

When using integer values such as in this example:

auto t = tweeny::from(130).to(130).during(300).to(80).during(400);

The compiler issues warnings for the conversion from int to float for all the different easings, sometimes multiple warnings per easing. I don't want to disable the warnings, because they may be valuable information pointing out where a possible bug exists.

It would be nice if a static_cast<float>() is used where appropriate, so that my warnings list is not flooded.

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