From ede8ce81ea264ba9fc0271cbb6b25961290b80ee Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sat, 31 Oct 2020 16:32:36 +0100 Subject: 20201031.1 global branch merge. Signed-off-by: Matteo Bernardini --- system/iscan/patches/jpegstream.cc.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 system/iscan/patches/jpegstream.cc.patch (limited to 'system/iscan/patches/jpegstream.cc.patch') diff --git a/system/iscan/patches/jpegstream.cc.patch b/system/iscan/patches/jpegstream.cc.patch new file mode 100644 index 0000000000..988a25daea --- /dev/null +++ b/system/iscan/patches/jpegstream.cc.patch @@ -0,0 +1,21 @@ +--- lib/jpegstream.cc.orig 2016-06-20 06:10:38.000000000 +0200 ++++ lib/jpegstream.cc 2016-07-10 18:45:40.511301054 +0200 +@@ -33,7 +33,7 @@ + + #include "jpegstream.hh" + +-#include ++// #include + #include + + namespace iscan +@@ -82,7 +82,8 @@ + // only that _bits != 8. + for (unsigned int i = 0; i < _h_sz; ++i) + { +- div_t index = div (i, 8 * sizeof (JSAMPLE)); ++ div_t index = div (static_cast(i), ++ static_cast(8 * sizeof (JSAMPLE))); + int offset = 8 * sizeof (JSAMPLE) - 1 - index.rem; + _scanline[i] = ((line[index.quot] & (1 << offset)) + ? 0 : ~0); -- cgit v1.2.3