From 91efd71ff9bd3b8ce879966c3f423241f4d94fd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 20 Aug 2013 19:19:39 +0200 Subject: [PATCH] Fix bug found by clang warning --- input/gesture_detector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input/gesture_detector.cpp b/input/gesture_detector.cpp index 5f06f0eb16..478f40ec05 100644 --- a/input/gesture_detector.cpp +++ b/input/gesture_detector.cpp @@ -11,7 +11,7 @@ const float estimatedInertiaDamping = 0.75f; GestureDetector::GestureDetector() : active_(0), - estimatedInertiaX_(0.0f), + estimatedInertiaX_(0.0f), estimatedInertiaY_(0.0f) { memset(pointers, 0, sizeof(pointers)); } @@ -75,7 +75,7 @@ bool GestureDetector::IsGestureActive(Gesture gesture) const { bool GestureDetector::GetGestureInfo(Gesture gesture, float info[4]) const { if (!(active_ & gesture)) { - memset(info, 0, sizeof(info)); + memset(info, 0, sizeof(float) * 4); return false; }