diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-06 18:15:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-06 18:15:24 +0100 |
commit | a7d554f3b24d582919656233476c89a6d74cb207 (patch) | |
tree | 9b9d2eb1668fb94a8141f42f73ee4afa5ea5616a /vcl | |
parent | 59339dec1ce56213dc74a06af2f0d35ac1c534d7 (diff) |
New loplugin:charrightshift
Change-Id: Ib645fb11004bc0fe05c9c416ae72b0ae56c23a15
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/fontsubset/cff.cxx | 2 |
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; |