= {{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 7510dbba26bab0f8
parent 7509 cf7c2e3493b2
child 7511 4ce3cc948a00
= {{0}} generates a memset() in MSVC, which isn't linked. Whoops!
src/events/SDL_gesture.c
     1.1 --- a/src/events/SDL_gesture.c	Tue Jul 23 17:40:16 2013 -0700
     1.2 +++ b/src/events/SDL_gesture.c	Tue Jul 23 17:40:18 2013 -0700
     1.3 @@ -391,11 +391,12 @@
     1.4  
     1.5  static float dollarRecognize(const SDL_DollarPath *path,int *bestTempl,SDL_GestureTouch* touch)
     1.6  {
     1.7 -
     1.8 -    SDL_FloatPoint points[DOLLARNPOINTS] = {{0}};
     1.9 +    SDL_FloatPoint points[DOLLARNPOINTS];
    1.10      int i;
    1.11      float bestDiff = 10000;
    1.12  
    1.13 +    SDL_memset(points, 0, sizeof(points));
    1.14 +
    1.15      dollarNormalize(path,points);
    1.16  
    1.17      //PrintPath(points);