diff options
author | Matteo Bernardini | 2019-11-17 09:41:16 +0100 |
---|---|---|
committer | Matteo Bernardini | 2019-11-17 09:41:16 +0100 |
commit | b1037bdb13cfab1a866971d09462ace5cad56259 (patch) | |
tree | 2ede4cb69452c1eff3dbf47b08cf60be0cabeaed /system/iscan/patches/jpegstream.cc.patch | |
parent | ed263eba8d75390f0e7789cc9e924e1be2584f69 (diff) | |
download | slackbuilds-b1037bdb13cfab1a866971d09462ace5cad56259.tar.gz |
20191117.1 global branch merge.current-20191117.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/iscan/patches/jpegstream.cc.patch')
-rw-r--r-- | system/iscan/patches/jpegstream.cc.patch | 21 |
1 files changed, 21 insertions, 0 deletions
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 <cstdlib> ++// #include <cstdlib> + #include <ios> + + 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<int>(i), ++ static_cast<int>(8 * sizeof (JSAMPLE))); + int offset = 8 * sizeof (JSAMPLE) - 1 - index.rem; + _scanline[i] = ((line[index.quot] & (1 << offset)) + ? 0 : ~0); |