File 04_fix-abs-gcc-7.patch of Package ufraw
Description: fix compilation in GCC 7
change some variables to int instead of unsigned so that calls to abs are no
longer ambiguous under GCC7
Author: Ken Moffat
Origin: https://sourceforge.net/p/ufraw/mailman/message/35843737/
Bug-Debian: https://bugs.debian.org/853692
--- ufraw-0.22.orig/dcraw.cc
+++ ufraw-0.22/dcraw.cc
@@ -8769,8 +8769,8 @@ void CLASS identify()
"Nikon", "Nokia", "Olympus", "Pentax", "Phase One", "Ricoh",
"Samsung", "Sigma", "Sinar", "Sony" };
char head[32], *cp;
- unsigned fsize, i, c;
- int hlen, flen, zero_fsize=1;
+ unsigned fsize;
+ int hlen, flen, zero_fsize=1, i, c;
struct jhead jh;
tiff_flip = flip = filters = UINT_MAX; /* unknown */