From 16113485f958b5356324051d5329d38f8d5ffc04 Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Wed, 14 Sep 2016 20:25:58 +0200 Subject: [PATCH] libraw: fix narrowing patch The patch was missing to modify the last constant 0x10. --- srcpkgs/libraw/patches/fix-signed_char_narrowing.patch | 3 ++- srcpkgs/libraw/template | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/srcpkgs/libraw/patches/fix-signed_char_narrowing.patch b/srcpkgs/libraw/patches/fix-signed_char_narrowing.patch index 58a428fa96..eef5927f38 100644 --- a/srcpkgs/libraw/patches/fix-signed_char_narrowing.patch +++ b/srcpkgs/libraw/patches/fix-signed_char_narrowing.patch @@ -29,6 +29,7 @@ Change the 0x?? constants to characters by using `\x??' notation. - +0,+1,+1,+2,0,0x10, +0,+1,+2,-1,1,0x40, +0,+1,+2,+0,0,0x60, - +0,+1,+2,+1,0,0x20, +0,+1,+2,+2,0,0x10, +1,-2,+1,+0,0,0x80, - +1,-1,+1,+1,0,0x88, +1,+0,+1,+2,0,0x08, +1,+0,+2,-1,0,0x40, +- +1,+0,+2,+1,0,0x10 + -2,-2,+0,-1,0,'\x01', -2,-2,+0,+0,1,'\x01', -2,-1,-1,+0,0,'\x01', + -2,-1,+0,-1,0,'\x02', -2,-1,+0,+0,0,'\x03', -2,-1,+0,+1,1,'\x01', + -2,+0,+0,-1,0,'\x06', -2,+0,+0,+0,1,'\x02', -2,+0,+0,+1,0,'\x03', @@ -50,6 +51,6 @@ Change the 0x?? constants to characters by using `\x??' notation. + +0,+1,+1,+2,0,'\x10', +0,+1,+2,-1,1,'\x40', +0,+1,+2,+0,0,'\x60', + +0,+1,+2,+1,0,'\x20', +0,+1,+2,+2,0,'\x10', +1,-2,+1,+0,0,'\x80', + +1,-1,+1,+1,0,'\x88', +1,+0,+1,+2,0,'\x08', +1,+0,+2,-1,0,'\x40', - +1,+0,+2,+1,0,0x10 ++ +1,+0,+2,+1,0,'\x10' }, chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 }; ushort (*brow[5])[4], *pix; diff --git a/srcpkgs/libraw/template b/srcpkgs/libraw/template index d032f7b4b9..35dbf2eb96 100644 --- a/srcpkgs/libraw/template +++ b/srcpkgs/libraw/template @@ -1,7 +1,7 @@ # Template file for 'libraw' pkgname=libraw version=0.17.2 -revision=2 +revision=3 wrksrc=LibRaw-${version} build_style=gnu-configure hostmakedepends="pkg-config"