summaryrefslogtreecommitdiff
path: root/helpcompiler
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-06 18:15:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-06 18:15:24 +0100
commita7d554f3b24d582919656233476c89a6d74cb207 (patch)
tree9b9d2eb1668fb94a8141f42f73ee4afa5ea5616a /helpcompiler
parent59339dec1ce56213dc74a06af2f0d35ac1c534d7 (diff)
New loplugin:charrightshift
Change-Id: Ib645fb11004bc0fe05c9c416ae72b0ae56c23a15
Diffstat (limited to 'helpcompiler')
-rw-r--r--helpcompiler/source/HelpLinker.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx
index 66ad44bbc055..cfff46a16a34 100644
--- a/helpcompiler/source/HelpLinker.cxx
+++ b/helpcompiler/source/HelpLinker.cxx
@@ -216,7 +216,7 @@ namespace URLEncoder
result += c;
else {
result += '%';
- result += hex[c >> 4];
+ result += hex[static_cast<unsigned char>(c) >> 4];
result += hex[c & 0xf];
}
}