Fix bug found by clang warning

This commit is contained in:
Henrik Rydgård committed 2013-08-20 19:19:39 +02:00
1 parent 2ef4221395
commit 91efd71ff9
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}