Re: [PHP-DEV] Some more warnings

2001-11-13 Thread Andy Lester
> 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. Perhaps a typecast to make it clear that it's intentional, and to eradicate the warning, would be appropr

RE: [PHP-DEV] Some more warnings

2001-11-13 Thread Marc Boeren
> > 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-los

Re: [PHP-DEV] Some more warnings

2001-11-13 Thread Rasmus Lerdorf
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. -Rasmus On Tue, 13 Nov 2001, Sebastian Bergmann wrote: > gd.c > C:\home\php\php4\ext\gd\gd.c(3537) : warn