You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ts...@apache.org on 2019/02/21 10:41:19 UTC
[logging-log4cxx] branch master updated: LOGCXX-400: Another case
of a build failure because of a narrowing conversion.
This is an automated email from the ASF dual-hosted git repository.
tschoening pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
The following commit(s) were added to refs/heads/master by this push:
new f4b5c9c LOGCXX-400: Another case of a build failure because of a narrowing conversion.
f4b5c9c is described below
commit f4b5c9cd400aef7373315cd8f776fb092db1772a
Author: Thorsten Schöning <ts...@am-soft.de>
AuthorDate: Thu Feb 21 11:41:17 2019 +0100
LOGCXX-400: Another case of a build failure because of a narrowing conversion.
https://lists.apache.org/thread.html/c7d3bea60a87b43cb55aae72e78d7044171dec435e2bc75cc0e9c2f5@<dev.logging.apache.org>
---
src/test/cpp/helpers/transcodertestcase.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/cpp/helpers/transcodertestcase.cpp b/src/test/cpp/helpers/transcodertestcase.cpp
index 6eafc15..cc394f0 100644
--- a/src/test/cpp/helpers/transcodertestcase.cpp
+++ b/src/test/cpp/helpers/transcodertestcase.cpp
@@ -331,7 +331,7 @@ public:
}
void encodeCharsetName3() {
- logchar unsupported[] = { 0x1F, 0x7F, 0x80, 0x81, 0x00 };
+ logchar unsupported[] = { 0x1F, 0x7F, static_cast<logchar>(0x80), static_cast<logchar>(0x81), 0x00 };
std::string encoded(Transcoder::encodeCharsetName(LogString(unsupported)));
LOGUNIT_ASSERT_EQUAL(std::string("????"), encoded);
}