RE: [PHP-DEV] Some more warnings
| From: | Marc Boeren | Date: | Tue, 13 Nov 2001 14:05:57 +0000 |
| Subject: | RE: [PHP-DEV] Some more warnings | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-70351@lists.php.net to get a copy of this message | ||
> > 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.