diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-11-12 17:12:00 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-11-14 10:14:59 +0100 |
commit | 0ca2be7cd3ab6437e0734d10e27adb0e5b3990b0 (patch) | |
tree | 669486b9b95536e44d74d3baf77e52048999a91e | |
parent | f8bf80939ab8960965b2fce58ebb614b7b754c27 (diff) |
-Werror,-Wshift-sign-overflow
Change-Id: I3a1e2cf5e09b30004bda9dc3fa82c4be696acb2a
-rw-r--r-- | vcl/source/fontsubset/cff.cxx | 4 |
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; |