[libxslt] Fix clang -Wimplicit-int-conversion warning
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Fix clang -Wimplicit-int-conversion warning
- Date: Fri, 10 Jan 2020 12:35:34 +0000 (UTC)
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]