fune/tools/clang-tidy/test/bugprone-incorrect-roundings.cpp

7 lines
53 B
C++

void f1()
{
double d;
int x;
x = (d + 0.5);
}