= {{0}} generates a memset() in MSVC, which isn't linked. Whoops!
authorJørgen P. Tjernø <jorgen@valvesoftware.com>
Tue, 23 Jul 2013 17:40:18 -0700
changeset 7510 dbba26bab0f8
parent 7509 cf7c2e3493b2
child 7511 4ce3cc948a00
= {{0}} generates a memset() in MSVC, which isn't linked. Whoops!
src/events/SDL_gesture.c
--- a/src/events/SDL_gesture.c	Tue Jul 23 17:40:16 2013 -0700
+++ b/src/events/SDL_gesture.c	Tue Jul 23 17:40:18 2013 -0700
@@ -391,11 +391,12 @@
 
 static float dollarRecognize(const SDL_DollarPath *path,int *bestTempl,SDL_GestureTouch* touch)
 {
-
-    SDL_FloatPoint points[DOLLARNPOINTS] = {{0}};
+    SDL_FloatPoint points[DOLLARNPOINTS];
     int i;
     float bestDiff = 10000;
 
+    SDL_memset(points, 0, sizeof(points));
+
     dollarNormalize(path,points);
 
     //PrintPath(points);