Cleanup: replace C-style casts with functional casts for numeric types

This commit is contained in:
2022-09-25 18:33:28 +10:00
parent c7b247a118
commit f68cfd6bb0
310 changed files with 1541 additions and 1542 deletions

View File

@@ -140,9 +140,9 @@ void BCMatrix::sanitize(Matrix &mat, int precision)
{
for (auto &row : mat) {
for (float &cell : row) {
double val = (double)cell;
double val = double(cell);
val = double_round(val, precision);
cell = (float)val;
cell = float(val);
}
}
}