Bug 931669 - Fix -Wsign-compare warning in Axis.cpp. r=botond

This commit is contained in:
Chris Peterson 2013-10-27 01:11:18 -07:00
parent 7650c4357f
commit 15fea8501b

View File

@ -63,7 +63,7 @@ static float gFlingStoppedThreshold = 0.01f;
* On touch end we calculate the average velocity in order to compensate
* touch/mouse drivers misbehaviour.
*/
static int gMaxVelocityQueueSize = 5;
static uint32_t gMaxVelocityQueueSize = 5;
static void ReadAxisPrefs()
{
@ -72,7 +72,7 @@ static void ReadAxisPrefs()
Preferences::AddFloatVarCache(&gVelocityThreshold, "apz.velocity_threshold", gVelocityThreshold);
Preferences::AddFloatVarCache(&gAccelerationMultiplier, "apz.acceleration_multiplier", gAccelerationMultiplier);
Preferences::AddFloatVarCache(&gFlingStoppedThreshold, "apz.fling_stopped_threshold", gFlingStoppedThreshold);
Preferences::AddIntVarCache(&gMaxVelocityQueueSize, "apz.max_velocity_queue_size", gMaxVelocityQueueSize);
Preferences::AddUintVarCache(&gMaxVelocityQueueSize, "apz.max_velocity_queue_size", gMaxVelocityQueueSize);
}
class ReadAxisPref MOZ_FINAL : public nsRunnable {