Match the arguments type in 'max' function 59/109559/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 10 Jan 2017 10:22:29 +0000 (19:22 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 10 Jan 2017 12:06:20 +0000 (21:06 +0900)
- Fix the matching:
  'max(double, float)' -> 'max(double, double)'

Change-Id: I07a8737d2d1a3934b7588aa8d925dd2389455ef4
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view.cpp

index eadaa49f7f0170897f5ac355966c05a9b55da0b6..471f37114ed440647ef0ba104b2dd5515e898354 100644 (file)
@@ -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<double>(0.0f), floor((position - mDomain.min) / mSpacing + 0.5f));
+    page = std::max(static_cast<double>(0.0f), static_cast<double>(floor((position - mDomain.min) / mSpacing + 0.5f)));
 
     if(wrap)
     {