Re: com php-src: fix (signed) integer overflow (part of bug #52550: Zend/zend_hash.h
| From: | Stas Malyshev | Date: | Fri, 06 Jul 2012 22:46:21 +0000 |
| Subject: | Re: com php-src: fix (signed) integer overflow (part of bug #52550: Zend/zend_hash.h | ||
| References: | 1 2 3 4 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-69526@lists.php.net to get a copy of this message | ||
Hi!
> Ok. I don 't have a MSVC setup handy. Can you please test if replacing that
> line with 'idx = 0 - idx;' fixes the warnings for you?
Seems to do the trick. Is 0- same as - for unsigned on all compilers (I
know common sense says it should be but when compilers are concerned
it's better to be sure :)
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227