> > C:\home\php\php4\ext\gd\gd.c(3537) : warning C4244: '=' :
> > Conversion from 'float' to 'int', possible data loss

> These definitely do not hide any sort of bug.  They are 
> simply scaling an  image and the result needs to be an int 
> as you can't have fractional pixels.  So this data-loss is 
> intentional.  

Wouldn't it be better then to cast explicitly to int, both to get rid of the
warnings and to convey that this behaviour is intentional?

Cheerio, Marc.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to