12 lines
562 B
Diff
12 lines
562 B
Diff
--- a/lib/jpegstream.cc 2016-08-19 11:14:06.000000000 +0200
|
|
+++ b/lib/jpegstream.cc 2017-11-12 08:37:36.999741006 +0100
|
|
@@ -82,7 +82,7 @@
|
|
// 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);
|