summaryrefslogtreecommitdiff
path: root/basebmp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-02-02 14:40:43 +0000
committerMichael Stahl <mstahl@redhat.com>2016-02-02 17:19:28 +0000
commit7e0449ab6a45d3e50741e85175002cfa8e05da49 (patch)
treeb169dd51847433ade3229b37929cccd7a1adf94d /basebmp
parentd6c4c28f75c755df1e1fa7df67eeadba78d66785 (diff)
error: left operand of shift expression '(-1 << 4)' is negative
Change-Id: Id87fd266f8e27444cb0984c92921b6700f504042 Reviewed-on: https://gerrit.libreoffice.org/22047 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'basebmp')
-rw-r--r--basebmp/inc/packedpixeliterator.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/basebmp/inc/packedpixeliterator.hxx b/basebmp/inc/packedpixeliterator.hxx
index 776a45e8e8f9..d7c6e62e3acf 100644
--- a/basebmp/inc/packedpixeliterator.hxx
+++ b/basebmp/inc/packedpixeliterator.hxx
@@ -78,7 +78,7 @@ public:
num_intraword_positions=sizeof(value_type)*8/bits_per_pixel,
/** Bit mask for one pixel (least significant bits)
*/
- bit_mask=~(~0 << bits_per_pixel)
+ bit_mask=~(~0U << bits_per_pixel)
};
private:
@@ -238,7 +238,7 @@ public:
num_intraword_positions=sizeof(value_type)*8/bits_per_pixel,
/** Bit mask for one pixel (least significant bits)
*/
- bit_mask=~(~0 << bits_per_pixel)
+ bit_mask=~(~0U << bits_per_pixel)
};
private:
@@ -477,7 +477,7 @@ public:
num_intraword_positions=sizeof(value_type)*8/bits_per_pixel,
/** Bit mask for one pixel (least significant bits)
*/
- bit_mask=~(~0 << bits_per_pixel)
+ bit_mask=~(~0U << bits_per_pixel)
};
// TODO(F2): direction of iteration (ImageIterator can be made to