mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
add casting for MSVC sqrt
This commit is contained in:
parent
3ba0ef7192
commit
67bb9a732a
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ OptimizingLookupTable::OptimizingLookupTable (Group const & group, int items_per
|
||||||
/* number of cells */
|
/* number of cells */
|
||||||
int const cells = items.size() / _items_per_cell;
|
int const cells = items.size() / _items_per_cell;
|
||||||
/* hence number down each side of the table's square */
|
/* hence number down each side of the table's square */
|
||||||
_dimension = max (1, int (rint (sqrt (cells))));
|
_dimension = max (1, int (rint (sqrt ((double)cells))));
|
||||||
|
|
||||||
_cells = new Cell*[_dimension];
|
_cells = new Cell*[_dimension];
|
||||||
for (int i = 0; i < _dimension; ++i) {
|
for (int i = 0; i < _dimension; ++i) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue