Skip to content

Commit 05b251a

Browse files
committed
Qualify calls to floor that come from std lib.
1 parent 7aca193 commit 05b251a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sc2lib/sc2_search.cc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "sc2lib/sc2_search.h"
22

3+
#include <cmath>
4+
35
namespace sc2 {
46

57
namespace search {
@@ -18,7 +20,7 @@ size_t CalculateQueries(float radius, float step_size, const Point2D& center, st
1820

1921
QueryInterface::PlacementQuery query(ABILITY_ID::BUILD_COMMANDCENTER, point);
2022

21-
current_grid = Point2D(floor(point.x), floor(point.y));
23+
current_grid = Point2D(std::floor(point.x), std::floor(point.y));
2224

2325
if (previous_grid != current_grid) {
2426
queries.push_back(query);

0 commit comments

Comments
 (0)