[libxslt] Fix clang -Wimplicit-int-conversion warning



commit aac4bccdd893713dd058305e385d7f13f94e6add
Author: David Kilzer <ddkilzer apple com>
Date:   Tue Jan 7 15:23:17 2020 -0800

    Fix clang -Wimplicit-int-conversion warning
    
    * libxslt/numbers.c:
    (xsltNumberFormatDecimal): Cast `val` to `(xmlChar)` to fix the
    warning.

 libxslt/numbers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libxslt/numbers.c b/libxslt/numbers.c
index 7969dc98..4cb21254 100644
--- a/libxslt/numbers.c
+++ b/libxslt/numbers.c
@@ -177,7 +177,7 @@ xsltNumberFormatDecimal(xmlBufferPtr buffer,
                i = -1;
                break;
            }
-           *(--pointer) = val;
+           *(--pointer) = (xmlChar)val;
        }
        else {
        /*


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