[MPlayer-dev-eng] [PATCH] bzero to memset

Gianluigi Tiesi mplayer at netfarm.it
Sat Jan 22 22:32:10 CET 2005


On Sat, Jan 22, 2005 at 02:36:30PM +0100, Guillaume POIRIER wrote:
> Le samedi 22 janvier 2005 à 03:43 +0100, Gianluigi Tiesi a écrit :
> > Updated patch for new cvs...
> 
> Tested on Linux i386 with gcc-3.4 and gcc-4.0. No more problems than
> before: 3.4 compiles it fine, but 4.0 spits its hatred on
> libmpcodecs/native/RTjpegN.c ... so if you're willing to test and fix
> it, I guess you're welcome to do so.
> 
> Other than that it works.
> 
> Regards,
> 
> Guillaume
> 
- bzero(RTjpeg_old, ((4*RTjpeg_width*RTjpeg_height)));
+ memset(RTjpeg_old, 0, ((4*RTjpeg_width*RTjpeg_height)));

Except the fact I don't understand the parentesis, the only problem
can have gcc is the result is not assignable to a size_t,

you can try:
memset(RTjpeg_old, 0, (size_t) ((4*RTjpeg_width*RTjpeg_height)));

anyway what gcc-4 says about it?

Regards

-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/




More information about the MPlayer-dev-eng mailing list