summaryrefslogtreecommitdiff
path: root/libavformat/cutils.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2009-02-04 05:56:39 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2009-02-04 05:56:39 +0000
commit2db5da97e2b230ccaede57e4f91cf009f52f2f99 (patch)
tree2c20cf34afe69694c157705d7943c11ba98e9328 /libavformat/cutils.c
parent5a897cfa3cf6cacfad90a8e4935e3435e6a3f2d0 (diff)
Do not misuse unsigned long to store pointers.
Originally committed as revision 16986 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/cutils.c')
-rw-r--r--libavformat/cutils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/cutils.c b/libavformat/cutils.c
index 42ef5996d9..4967d5b90c 100644
--- a/libavformat/cutils.c
+++ b/libavformat/cutils.c
@@ -21,10 +21,10 @@
#include "avformat.h"
/* add one element to a dynamic array */
-void ff_dynarray_add(unsigned long **tab_ptr, int *nb_ptr, unsigned long elem)
+void ff_dynarray_add(intptr_t **tab_ptr, int *nb_ptr, intptr_t elem)
{
int nb, nb_alloc;
- unsigned long *tab;
+ intptr_t *tab;
nb = *nb_ptr;
tab = *tab_ptr;
@@ -33,7 +33,7 @@ void ff_dynarray_add(unsigned long **tab_ptr, int *nb_ptr, unsigned long elem)
nb_alloc = 1;
else
nb_alloc = nb * 2;
- tab = av_realloc(tab, nb_alloc * sizeof(unsigned long));
+ tab = av_realloc(tab, nb_alloc * sizeof(intptr_t));
*tab_ptr = tab;
}
tab[nb++] = elem;