summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-11-12 17:12:00 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-11-14 10:14:59 +0100
commit0ca2be7cd3ab6437e0734d10e27adb0e5b3990b0 (patch)
tree669486b9b95536e44d74d3baf77e52048999a91e /vcl
parentf8bf80939ab8960965b2fce58ebb614b7b754c27 (diff)
-Werror,-Wshift-sign-overflow
Change-Id: I3a1e2cf5e09b30004bda9dc3fa82c4be696acb2a
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/fontsubset/cff.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx
index e94fcb992da1..e2241a1b3fb4 100644
--- a/vcl/source/fontsubset/cff.cxx
+++ b/vcl/source/fontsubset/cff.cxx
@@ -704,7 +704,7 @@ void CffSubsetterContext::readDictOp( void)
nS32 += mpReadPtr[1] << 16;
nS32 += mpReadPtr[2] << 8;
nS32 += mpReadPtr[3] << 0;
- if( (sizeof(nS32) != 4) && (nS32 & (1<<31)))
+ if( (sizeof(nS32) != 4) && (nS32 & (1U<<31)))
nS32 |= (~0U) << 31; // assuming 2s complement
mpReadPtr += 4;
nVal = static_cast<ValType>(nS32);
@@ -743,7 +743,7 @@ void CffSubsetterContext::read2push()
p += 2;
} else /*if( c == 255)*/ { // Fixed16.16
int nS32 = (p[1] << 24) + (p[2] << 16) + (p[3] << 8) + p[4];
- if( (sizeof(nS32) != 2) && (nS32 & (1<<31)))
+ if( (sizeof(nS32) != 2) && (nS32 & (1U<<31)))
nS32 |= (~0U) << 31; // assuming 2s complement
aVal = static_cast<ValType>(nS32 * (1.0 / 0x10000));
p += 5;