2021-04-03 09:42:04 +07:00
|
|
|
jasper 2.0.17 fixes some signed compare without breaking ABI
|
|
|
|
but it breaks API
|
|
|
|
Index: DevIL/src-IL/src/il_jp2.cpp
|
|
|
|
===================================================================
|
srcpkgs/d*: convert patches to -Np1
* daemontools and dmraid is kept at -Np0
```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
```
2021-06-19 10:03:21 +07:00
|
|
|
--- a/DevIL/src-IL/src/il_jp2.cpp
|
|
|
|
+++ b/DevIL/src-IL/src/il_jp2.cpp
|
2021-04-03 09:42:04 +07:00
|
|
|
@@ -314,15 +314,15 @@ ILboolean iLoadJp2Internal(jas_stream_t
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-static int iJp2_file_read(jas_stream_obj_t *obj, char *buf, int cnt)
|
|
|
|
+static int iJp2_file_read(jas_stream_obj_t *obj, char *buf, unsigned cnt)
|
|
|
|
{
|
|
|
|
obj;
|
|
|
|
return iread(buf, 1, cnt);
|
|
|
|
}
|
|
|
|
|
|
|
|
-static int iJp2_file_write(jas_stream_obj_t *obj, char *buf, int cnt)
|
|
|
|
+static int iJp2_file_write(jas_stream_obj_t *obj, const char *buf, unsigned cnt)
|
|
|
|
{
|
|
|
|
obj;
|
|
|
|
return iwrite(buf, 1, cnt);
|
|
|
|
}
|
|
|
|
|