From b5e278526fdb184380e0809d9ada5c1927510278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Wed, 6 Feb 2019 10:21:51 +0100 Subject: [PATCH] [python/turtle] Use namespace std --- python/port/mod/turtle/turtle.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/port/mod/turtle/turtle.cpp b/python/port/mod/turtle/turtle.cpp index 98d0c6330..d1268bdb5 100644 --- a/python/port/mod/turtle/turtle.cpp +++ b/python/port/mod/turtle/turtle.cpp @@ -76,8 +76,8 @@ void Turtle::circle(mp_int_t radius, mp_float_t angle) { bool Turtle::goTo(mp_float_t x, mp_float_t y) { mp_float_t oldx = m_x; mp_float_t oldy = m_y; - mp_float_t xLength = absF(floor(x) - floor(oldx)); - mp_float_t yLength = absF(floor(y) - floor(oldy)); + mp_float_t xLength = absF(std::floor(x) - std::floor(oldx)); + mp_float_t yLength = absF(std::floor(y) - std::floor(oldy)); bool principalDirectionIsX = xLength >= yLength; mp_float_t length = principalDirectionIsX ? xLength : yLength; @@ -183,7 +183,7 @@ void Turtle::setHeadingPrivate(mp_float_t angle) { } KDPoint Turtle::position(mp_float_t x, mp_float_t y) const { - return KDPoint(floor(x + k_xOffset), floor(k_invertedYAxisCoefficient * y + k_yOffset)); + return KDPoint(std::floor(x + k_xOffset), std::floor(k_invertedYAxisCoefficient * y + k_yOffset)); } bool Turtle::hasUnderneathPixelBuffer() {