diff --git a/0001-error-left-operand-of-shift-expression-1-4-is-negati.patch b/0001-error-left-operand-of-shift-expression-1-4-is-negati.patch new file mode 100644 index 0000000..4940171 --- /dev/null +++ b/0001-error-left-operand-of-shift-expression-1-4-is-negati.patch @@ -0,0 +1,27 @@ +From 02ea43e61ac9779a640d48393d127fcb7d698500 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= +Date: Tue, 2 Feb 2016 14:40:43 +0000 +Subject: [PATCH] error: left operand of shift expression '(-1 << 4)' is + negative + +Change-Id: Id87fd266f8e27444cb0984c92921b6700f504042 +--- + basebmp/inc/packedpixeliterator.hxx | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/basebmp/inc/packedpixeliterator.hxx b/basebmp/inc/packedpixeliterator.hxx +index 776a45e..e5ef517 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=~(static_cast(~0) << bits_per_pixel) + }; + + private: +-- +2.5.0 + diff --git a/libreoffice.spec b/libreoffice.spec index ac1afd6..5bd62ff 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -253,6 +253,7 @@ Patch15: 0001-tdf-95450-avoid-double-swap-on-big-endian-arches.patch Patch16: 0001-these-popups-should-start-invisible-and-take-default.patch Patch17: 0002-disable-tearability-of-color-window.patch Patch18: 0001-rhbz-1168757-propagate-selected-slides-to-print-dial.patch +Patch19: 0001-error-left-operand-of-shift-expression-1-4-is-negati.patch %define instdir %{_libdir} %define baseinstdir %{instdir}/libreoffice