Bug 721888 - Fix compiler warnings. r=blassey
authorKartikaya Gupta <kgupta@mozilla.com>
Fri, 27 Jan 2012 21:00:03 -0500
changeset 86871 2571f70b20c5c60b54c2452e41b7a172280778a4
parent 86870 eb80ab6ee07b7316fe51227659fa4158221bd17d
child 86872 024b7dac0eaf9d03dda150f826111d66d0a01c7e
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey
bugs721888
milestone12.0a1
Bug 721888 - Fix compiler warnings. r=blassey
mobile/android/base/GeckoEvent.java
--- a/mobile/android/base/GeckoEvent.java
+++ b/mobile/android/base/GeckoEvent.java
@@ -188,17 +188,17 @@ public class GeckoEvent {
             }
         }
     }
 
     public void addMotionPoint(int index, int eventIndex, MotionEvent event) {
         PointF geckoPoint = new PointF(event.getX(eventIndex), event.getY(eventIndex));
         geckoPoint = GeckoApp.mAppContext.getLayerController().convertViewPointToLayerPoint(geckoPoint);
 
-        mPoints[index] = new Point((int)Math.round(geckoPoint.x), (int)Math.round(geckoPoint.y));
+        mPoints[index] = new Point(Math.round(geckoPoint.x), Math.round(geckoPoint.y));
         mPointIndicies[index] = event.getPointerId(eventIndex);
         // getToolMajor, getToolMinor and getOrientation are API Level 9 features
         if (Build.VERSION.SDK_INT >= 9) {
             double radians = event.getOrientation(eventIndex);
             mOrientations[index] = (float) Math.toDegrees(radians);
             // w3c touchevents spec does not allow orientations == 90
             // this shifts it to -90, which will be shifted to zero below
             if (mOrientations[index] == 90)