I suspect you meant something different here. shouldn't it be:

N -= floor(N/24)*24

in both cases?

 #include "php.h"
 #include "php_streams.h"
@@ -2329,9 +2329,9 @@
        N = (calc_sunset ? h_set : h_rise) + gmt_offset;
if (N > 24) {
-               N %= 24;
+               N -= floor(N / 24) * N;
        } else if (N < 0) {
-               N = N % 24 + 24;
+               N = floor(N / 24) * -N + 24;
        }
switch (retformat) {




--
Stanislav Malyshev, Zend Products Engineer
[EMAIL PROTECTED]  http://www.zend.com/

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to