summaryrefslogtreecommitdiff
path: root/libexslt
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2003-07-14 04:59:57 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2003-07-14 04:59:57 +0000
commit91249324be8a7f3de6989b70da887f659c47b0f0 (patch)
treec7eca61795c4df52109dadfc828d683263fe8aa3 /libexslt
parent7b89d982e42e1c043ea049d80859d9c0b5d54b95 (diff)
downloadlibxslt-91249324be8a7f3de6989b70da887f659c47b0f0.tar.gz
libxslt-91249324be8a7f3de6989b70da887f659c47b0f0.tar.bz2
libxslt-91249324be8a7f3de6989b70da887f659c47b0f0.zip
fixed bug 113520
Diffstat (limited to 'libexslt')
-rw-r--r--libexslt/date.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexslt/date.c b/libexslt/date.c
index 51f1c536..1fe64aaa 100644
--- a/libexslt/date.c
+++ b/libexslt/date.c
@@ -1291,15 +1291,15 @@ exsltDateCastDateToNumber (const exsltDateValPtr dt)
return 0.0;
if ((dt->type & XS_GYEAR) == XS_GYEAR) {
- ret = (double)(_exsltDateCastYMToDays(dt) * SECS_PER_DAY);
+ ret = (double)_exsltDateCastYMToDays(dt) * SECS_PER_DAY;
}
/* add in days */
if (dt->type == XS_DURATION) {
- ret += (double)(dt->value.dur.day * SECS_PER_DAY);
+ ret += (double)dt->value.dur.day * SECS_PER_DAY;
ret += dt->value.dur.sec;
} else {
- ret += (double)(dt->value.date.day * SECS_PER_DAY);
+ ret += (double)dt->value.date.day * SECS_PER_DAY;
/* add in time */
ret += TIME_TO_NUMBER(dt);
}