aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/qsort.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-18 18:39:17 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-18 18:39:17 +0200
commit88f87ebaa38986be1f6355efe471a27d4ef9c6f5 (patch)
tree8795e82892a68cb3586a9793da547d7f55472842 /libavutil/qsort.h
parent3a0a2f33a6c955823fa4fb12c0b49cd29a496659 (diff)
downloadffmpeg-88f87ebaa38986be1f6355efe471a27d4ef9c6f5.tar.gz
qsort: add some forgotten ()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/qsort.h')
-rw-r--r--libavutil/qsort.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/qsort.h b/libavutil/qsort.h
index ca66c5fb62..0b352cf164 100644
--- a/libavutil/qsort.h
+++ b/libavutil/qsort.h
@@ -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];\