Re: cvs: php-src(PHP_5_2) /ext/date php_date.c
| From: | Ilia Alshanetsky | Date: | Thu, 07 Jun 2007 01:27:25 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_2) /ext/date php_date.c | ||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-44723@lists.php.net to get a copy of this message | ||
The problem is that N is a double and gcc does not like doing % on doubles, at least if the compiler error is to be believed.
On 6-Jun-07, at 9:12 PM, Stanislav Malyshev wrote:
Ilia AlshanetskyI suspect you meant something different here. shouldn't it be: N -= floor(N/24)*24 in both cases?BTW, just out of curiosity - which compilers can't do % and need floor? --Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/