aboutsummaryrefslogtreecommitdiffstats
path: root/juniper
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2021-04-30 14:49:58 +0200
committerTor Egge <Tor.Egge@online.no>2021-04-30 14:49:58 +0200
commitf50beda35324be35738580c7bd6688051555b9fd (patch)
tree88a9339eb74bbd80bf76c280398958a2fd442559 /juniper
parent073e434e887c12acc233a7c7808fd6c40574f06f (diff)
Cast to signed char when needed in juniper.
Diffstat (limited to 'juniper')
-rw-r--r--juniper/src/test/auxTest.cpp2
-rw-r--r--juniper/src/vespa/juniper/SummaryConfig.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/juniper/src/test/auxTest.cpp b/juniper/src/test/auxTest.cpp
index 74b3469f2c0..2557fbf890d 100644
--- a/juniper/src/test/auxTest.cpp
+++ b/juniper/src/test/auxTest.cpp
@@ -302,7 +302,7 @@ void test_dump(const char* s, unsigned int len)
unsigned int start = i;
for (; i < len;)
{
- if (s[i] < 0) {
+ if ((signed char) s[i] < 0) {
printf("�");
} else {
printf("%c", s[i]);
diff --git a/juniper/src/vespa/juniper/SummaryConfig.h b/juniper/src/vespa/juniper/SummaryConfig.h
index 96023b9523b..1212132c76e 100644
--- a/juniper/src/vespa/juniper/SummaryConfig.h
+++ b/juniper/src/vespa/juniper/SummaryConfig.h
@@ -31,7 +31,7 @@ public:
inline const std::string & highlight_on() const { return _highlight_on; }
inline const std::string & highlight_off() const { return _highlight_off; }
inline const std::string & dots() const { return _dots; }
- inline bool separator(const char c) const { return (c < 0 ? false : _separator.test(c)); }
+ inline bool separator(const char c) const { return ((signed char) c < 0 ? false : _separator.test(c)); }
inline bool connector(const unsigned char c) const { return _connector.test(c); }
inline ConfigFlag escape_markup() const { return _escape_markup; }
inline ConfigFlag preserve_white_space() const { return _preserve_white_space; }