Skip to content

Compilation fails with clang 10 #1021

Closed
@DarkWingMcQuack

Description

@DarkWingMcQuack

Describe the bug
Compilation with clang 10 fails at this line the error

error: implicit conversion from 'long' to 'double' may lose precision [-Werror,-Wimplicit-int-float-conversion]
  return d >= min && d <= max;
           ~~ ^~~

To Reproduce
Steps to reproduce the behavior:

  1. compile with clang 10

Expected behavior
should compile

Additional context
simply adding the static_casts which are already implemented in the comment above solves the issue

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