aboutsummaryrefslogtreecommitdiffstats
path: root/searchsummary
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2018-05-11 12:01:23 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2018-05-11 14:03:40 +0000
commit01a98557f17a7aa985cc109d30a9fa6b019c9f5f (patch)
treee0c1f0b100a3a2054e9591781f21f3431e81ce3e /searchsummary
parentc78c48837c2e8d9255d00013b09e71d64ab80643 (diff)
Fix bad old-style cast
Diffstat (limited to 'searchsummary')
-rw-r--r--searchsummary/src/vespa/searchsummary/docsummary/tokenizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchsummary/src/vespa/searchsummary/docsummary/tokenizer.cpp b/searchsummary/src/vespa/searchsummary/docsummary/tokenizer.cpp
index 003b9920068..6f75bb89943 100644
--- a/searchsummary/src/vespa/searchsummary/docsummary/tokenizer.cpp
+++ b/searchsummary/src/vespa/searchsummary/docsummary/tokenizer.cpp
@@ -57,7 +57,7 @@ Tokenizer::getNextToken()
bool insideAnnotation = false;
for (; _pos < _end; ) {
ucs4_t ch;
- if ((unsigned const char)*next < 0x80) {
+ if (static_cast<unsigned char>(*next) < 0x80) {
ch = *next++;
if (ch == 0x1F) { // unit separator
Token t(textBegin, textEnd, stemBegin, stemEnd, _type);