> 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
> > 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
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