Skip to content

Fix casting in tests #407

@minorsecond

Description

@minorsecond

Describe the bug
Currently, tests give us graphing_calculations.cpp:100:37: warning: use of old-style cast to ‘int’ [-Wold-style-cast].

To Fix
Need to change auto timet = (int)std::mktime(&t); to something like auto timet = static_cast<int>std::mktime(&t);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershacktoberfestGood ticket for hacktoberfest

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions