mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-10 20:49:31 +01:00
a637840703
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
21 lines
721 B
Diff
21 lines
721 B
Diff
--- 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);
|