Closed
Description
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:
- compile with clang 10
Expected behavior
should compile
Additional context
simply adding the static_cast
s which are already implemented in the comment above solves the issue
Metadata
Metadata
Assignees
Labels
No labels