diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2005-11-21 11:23:47 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2005-11-21 11:23:47 +0000 |
commit | 5e9576a492e4fb8c2d517ccd6056a139e801ec9f (patch) | |
tree | 9bc3497e674a0c814d2499f60445f8e68cbb09f9 /xmlschemastypes.c | |
parent | 90b5ebc0f335c3192bf898309b3100c694aa7b2b (diff) | |
download | libxml2-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.c | 4 |
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); |