[libxslt] Make long-to-double cast explicit in date.c



commit 6c2393e2ad738af32fd909fc5fb92e1e29c5fbcf
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Mon Jun 22 13:35:17 2020 +0200

    Make long-to-double cast explicit in date.c
    
    Fixes -Wimplicit-int-float-conversion warnings.
    
    Closes #41.

 libexslt/date.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libexslt/date.c b/libexslt/date.c
index 1ee5dbfc..8f34a75f 100644
--- a/libexslt/date.c
+++ b/libexslt/date.c
@@ -3110,7 +3110,7 @@ exsltDateDuration (const xmlChar *number)
         return NULL;
 
     days = floor(secs / SECS_PER_DAY);
-    if ((days <= LONG_MIN) || (days >= LONG_MAX))
+    if ((days <= (double)LONG_MIN) || (days >= (double)LONG_MAX))
         return NULL;
 
     dur = exsltDateCreateDuration();


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