diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-25 10:36:42 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-25 10:36:42 -0400 |
commit | 67bb9a732aaa4a01bb706bca743c3673314b44b2 (patch) | |
tree | 973849eaf555e169c2923b67d6490f24ab985741 /libs/canvas/lookup_table.cc | |
parent | 3ba0ef71928542daab07b40e7c60840fc9a56f88 (diff) |
add casting for MSVC sqrt
Diffstat (limited to 'libs/canvas/lookup_table.cc')
-rw-r--r-- | libs/canvas/lookup_table.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/canvas/lookup_table.cc b/libs/canvas/lookup_table.cc index be0e553ee7..9697ba8103 100644 --- a/libs/canvas/lookup_table.cc +++ b/libs/canvas/lookup_table.cc @@ -79,7 +79,7 @@ OptimizingLookupTable::OptimizingLookupTable (Group const & group, int items_per /* number of cells */ int const cells = items.size() / _items_per_cell; /* 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]; for (int i = 0; i < _dimension; ++i) { |