Mercurial > libavcodec.hg
diff utils.c @ 1057:bb5de8a59da8 libavcodec
* static,const,compiler warning cleanup
author | kabi |
---|---|
date | Mon, 10 Feb 2003 09:35:32 +0000 |
parents | 8f440ca8e0b0 |
children | b32afefe7d33 |
line wrap: on
line diff
--- a/utils.c Sun Feb 09 16:58:47 2003 +0000 +++ b/utils.c Mon Feb 10 09:35:32 2003 +0000 @@ -46,7 +46,7 @@ /** * realloc which does nothing if the block is large enough */ -void *av_fast_realloc(void *ptr, int *size, int min_size) +void *av_fast_realloc(void *ptr, unsigned int *size, unsigned int min_size) { if(min_size < *size) return ptr; @@ -63,7 +63,7 @@ static const unsigned int grow_static = 64; // ^2 void *__av_mallocz_static(void** location, unsigned int size) { - int l = (last_static + grow_static) & ~(grow_static - 1); + unsigned int l = (last_static + grow_static) & ~(grow_static - 1); void *ptr = av_mallocz(size); if (!ptr) return NULL;