From a7d554f3b24d582919656233476c89a6d74cb207 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 6 Jan 2017 18:15:24 +0100 Subject: New loplugin:charrightshift Change-Id: Ib645fb11004bc0fe05c9c416ae72b0ae56c23a15 --- vcl/source/fontsubset/cff.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl') 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(*p) >> 4) & 0x0F; cNibble += (cNibble < 10) ? '0' : 'A'-10; *(pOut++) = cNibble; cNibble = *(p++) & 0x0F; -- cgit