summaryrefslogtreecommitdiff
path: root/vcl/source/fontsubset
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 /vcl/source/fontsubset
parent59339dec1ce56213dc74a06af2f0d35ac1c534d7 (diff)
New loplugin:charrightshift
Change-Id: Ib645fb11004bc0fe05c9c416ae72b0ae56c23a15
Diffstat (limited to 'vcl/source/fontsubset')
-rw-r--r--vcl/source/fontsubset/cff.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx
index cca14eda7c64..a50801f3ffe9 100644
--- a/vcl/source/fontsubset/cff.cxx
+++ b/vcl/source/fontsubset/cff.cxx
@@ -1777,7 +1777,7 @@ inline void Type1Emitter::emitAllHex()
char* pOut = aHexBuf;
while( (p < mpPtr) && (pOut < aHexBuf+sizeof(aHexBuf)-4)) {
// convert each byte to hex
- char cNibble = (*p >> 4) & 0x0F;
+ char cNibble = (static_cast<unsigned char>(*p) >> 4) & 0x0F;
cNibble += (cNibble < 10) ? '0' : 'A'-10;
*(pOut++) = cNibble;
cNibble = *(p++) & 0x0F;