../../src/wcmTouchFilter.c: In function 'wcmSendScrollEvent':
../../src/wcmTouchFilter.c:299:21: warning: cast from function call of type
'int' to non-matching type 'double'

../../src/wcmTouchFilter.c: In function 'wcmFingerZoom':
../../src/wcmTouchFilter.c:458:17: warning: cast from function call of type
'int' to non-matching type 'double'

Signed-off-by: Peter Hutterer <[email protected]>
---
 src/wcmTouchFilter.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/wcmTouchFilter.c b/src/wcmTouchFilter.c
index 6050697..f8cae69 100644
--- a/src/wcmTouchFilter.c
+++ b/src/wcmTouchFilter.c
@@ -296,7 +296,7 @@ static void wcmSendScrollEvent(WacomDevicePtr priv, int 
dist,
 {
        int button = (dist > 0) ? buttonUp : buttonDn;
        WacomCommonPtr common = priv->common;
-       int count = (int)(((double)abs(dist)/
+       int count = (int)((1.0 * abs(dist)/
                common->wcmGestureParameters.wcmScrollDistance) + 0.5);
        WacomChannelPtr firstChannel = common->wcmChannel;
        WacomChannelPtr secondChannel = common->wcmChannel + 1;
@@ -455,7 +455,7 @@ static void wcmFingerZoom(WacomDevicePtr priv)
                return;
 
        dist = touchDistance(ds[0], ds[1]) - dist;
-       count = 
(int)(((double)abs(dist)/common->wcmGestureParameters.wcmZoomDistance) + 0.5);
+       count = (int)((1.0 * 
abs(dist)/common->wcmGestureParameters.wcmZoomDistance) + 0.5);
 
        /* user might have changed from left to right or vice versa */
        if (count < common->wcmGestureParameters.wcmGestureUsed)
-- 
1.7.2.3


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to