986c0a7d5e
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
11 lines
562 B
Diff
11 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);
|