Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 595776
Collapse All | Expand All

(-)iscan-2.30.1/lib/jpegstream.cc.old (-1 / +1 lines)
Lines 82-88 Link Here
82
        //        only that _bits != 8.
82
        //        only that _bits != 8.
83
        for (unsigned int i = 0; i < _h_sz; ++i)
83
        for (unsigned int i = 0; i < _h_sz; ++i)
84
          {
84
          {
85
            div_t index = div (i, 8 * sizeof (JSAMPLE));
85
            div_t index = div ((int) i, (int) 8 * sizeof (JSAMPLE));
86
            int offset = 8 * sizeof (JSAMPLE) - 1 - index.rem;
86
            int offset = 8 * sizeof (JSAMPLE) - 1 - index.rem;
87
            _scanline[i] = ((line[index.quot] & (1 << offset))
87
            _scanline[i] = ((line[index.quot] & (1 << offset))
88
                            ? 0 : ~0);
88
                            ? 0 : ~0);

Return to bug 595776