diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2005-11-21 11:23:58 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2005-11-21 11:23:58 +0000 |
commit | f22031d9981030635e99a16b024f6c66d6068cd2 (patch) | |
tree | d8d5b1d91c1cfe5e4419cdcab2d47e6b3764729c /libexslt | |
parent | 84e262de4aa1e3146833ea63ed36e5fafc2c578a (diff) | |
download | libxslt-f22031d9981030635e99a16b024f6c66d6068cd2.tar.gz libxslt-f22031d9981030635e99a16b024f6c66d6068cd2.tar.bz2 libxslt-f22031d9981030635e99a16b024f6c66d6068cd2.zip |
Albert Chin found another signed/unsigned problem in the date and time
* libexslt/date.c: Albert Chin found another signed/unsigned problem
in the date and time code raised on IRIX 6.5
Daniel
Diffstat (limited to 'libexslt')
-rw-r--r-- | libexslt/date.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexslt/date.c b/libexslt/date.c index c533d4d4..37aa888b 100644 --- a/libexslt/date.c +++ b/libexslt/date.c @@ -1518,8 +1518,8 @@ _exsltDateAdd (exsltDateValPtr dt, exsltDateValPtr 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); |