qsort: add some forgotten ()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 18 Jun 2012 16:39:17 +0000 (18:39 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 18 Jun 2012 16:39:17 +0000 (18:39 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/qsort.h

index ca66c5f..0b352cf 100644 (file)
@@ -25,7 +25,7 @@
     void *stack[64][2];\
     int sp= 1;\
     stack[0][0] = p;\
-    stack[0][1] = p+num-1;\
+    stack[0][1] = (p)+(num)-1;\
     while(sp){\
         type *start= stack[--sp][0];\
         type *end  = stack[  sp][1];\