[PHP-DEV] Some more warnings
gd.c C:\home\php\php4\ext\gd\gd.c(3537) : warning C4244: '=' : Conversion from 'float' to 'int', possible data loss C:\home\php\php4\ext\gd\gd.c(3538) : warning C4244: '=' : Conversion from 'float' to 'int', possible data loss C:\home\php\php4\ext\gd\gd.c(3550) : warning C4244: '=' : Conversion from 'float' to 'int', possible data loss C:\home\php\php4\ext\gd\gd.c(3551) : warning C4244: '=' : Conversion from 'float' to 'int', possible data loss -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- 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]
Re: [PHP-DEV] Some more warnings
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) : warning C4244: '=' : Conversion from 'float' to 'int', possible data loss C:\home\php\php4\ext\gd\gd.c(3538) : warning C4244: '=' : Conversion from 'float' to 'int', possible data loss C:\home\php\php4\ext\gd\gd.c(3550) : warning C4244: '=' : Conversion from 'float' to 'int', possible data loss C:\home\php\php4\ext\gd\gd.c(3551) : warning C4244: '=' : Conversion from 'float' to 'int', possible data loss -- 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]
RE: [PHP-DEV] Some more warnings
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]
Re: [PHP-DEV] Some more warnings
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 appropriate. xoxo, Andy -- %_=split/;/,.;;n;u;e;ot;t;her;c; . # Andy Lester 'Perl ;@; a;a;j;m;er;y;t;p;n;d;s;o;'. # http://petdance.com hack;print map delete$_{$_},split//,q [EMAIL PROTECTED] -- 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]