From f4f9377d32ab7b7654fffd6c21c722c7919e6cef Mon Sep 17 00:00:00 2001 From: "Dongkyun, Son" Date: Fri, 4 Nov 2016 16:56:37 +0900 Subject: [PATCH] temporary fix: error: no matching function for call to 'max(double, float)' Signed-off-by: Dongkyun, Son --- dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view.cpp b/dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view.cpp index eadaa49..471f371 100644 --- a/dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view.cpp +++ b/dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view.cpp @@ -248,7 +248,7 @@ unsigned int FixedRuler::GetPageFromPosition(float position, bool wrap) const { position = WrapInDomain(position, mDomain.min, mDomain.max); } - page = std::max(static_cast(0.0f), floor((position - mDomain.min) / mSpacing + 0.5f)); + page = std::max(static_cast(0.0f), static_cast(floor((position - mDomain.min) / mSpacing + 0.5f))); if(wrap) { -- 2.7.4