[xslt] 1.1.15 test failure on IRIX 6.5



$ gmake check
...
## Running exslt common tests
add.1 result
13c13 < result : 1999-12-31 --- > result : 1999-12-30 17c17 < result : -0001-12-31T23:59:59Z --- > result : -0001-12-30T23:59:59Z 19c19 < result : 1999-12-31T23:59:01Z --- > result : 1999-12-30T23:59:01Z 21c21 < result : -0002-12-31T23:59:01Z --- > result : -0002-12-30T23:59:01Z 25c25 < result : 1999-12-31 --- > result : 1999-12-30 27c27 < result : 1999-12-31 --- > result : 1999-12-30

Fix below. Does this make sense to anyone?

-- 
albert chin (china thewrittenword com)

-- snip snip
Index: libexslt/date.c
===================================================================
--- libexslt/date.c.orig	2004-11-08 09:35:03.000000000 -0600
+++ libexslt/date.c	2005-11-11 16:36:54.465803000 -0600
@@ -1517,8 +1513,8 @@
 
     while (1) {
         if (tempdays < 1) {
-            long tmon = (long)MODULO_RANGE(r->mon-1, 1, 13);
-            long tyr  = r->year + (long)FQUOTIENT_RANGE(r->mon-1, 1, 13);
+            long tmon = (long)MODULO_RANGE((int)r->mon-1, 1, 13);
+            long tyr  = r->year + (long)FQUOTIENT_RANGE((int)r->mon-1, 1, 13);
             if (tyr == 0)
                 tyr--;
             tempdays += MAX_DAYINMONTH(tyr, tmon);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]