summaryrefslogtreecommitdiff
path: root/xmlschemastypes.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-11-21 11:23:47 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-11-21 11:23:47 +0000
commit5e9576a492e4fb8c2d517ccd6056a139e801ec9f (patch)
tree9bc3497e674a0c814d2499f60445f8e68cbb09f9 /xmlschemastypes.c
parent90b5ebc0f335c3192bf898309b3100c694aa7b2b (diff)
downloadlibxml2-5e9576a492e4fb8c2d517ccd6056a139e801ec9f.tar.gz
Albert Chin found another signed/unsigned problem in the date and time
* xmlschemastypes.c: Albert Chin found another signed/unsigned problem in the date and time code raised on IRIX 6.5 Daniel
Diffstat (limited to 'xmlschemastypes.c')
-rw-r--r--xmlschemastypes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlschemastypes.c b/xmlschemastypes.c
index 205d484f..608144a7 100644
--- a/xmlschemastypes.c
+++ b/xmlschemastypes.c
@@ -3759,8 +3759,8 @@ _xmlSchemaDateAdd (xmlSchemaValPtr dt, xmlSchemaValPtr dur)
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);