Files
ufraw/ufraw-gcc7.patch
Ismail Dönmez 3df24b47f5 Accepting request 503013 from home:msmeissn:branches:graphics
- ufraw-gcc7.patch: pull up the abs() to the call where
  the float -> unsigned int conversions happens.

OBS-URL: https://build.opensuse.org/request/show/503013
OBS-URL: https://build.opensuse.org/package/show/graphics/ufraw?expand=0&rev=45
2017-06-12 11:17:38 +00:00

18 lines
544 B
Diff

Index: ufraw-0.22/dcraw.cc
===================================================================
--- ufraw-0.22.orig/dcraw.cc
+++ ufraw-0.22/dcraw.cc
@@ -9240,9 +9240,9 @@ canon_a5:
filters = 0x16161616;
}
if (make[0] == 'O') {
- i = find_green (12, 32, 1188864, 3576832);
- c = find_green (12, 32, 2383920, 2387016);
- if (abs(i) < abs(c)) {
+ i = abs(find_green (12, 32, 1188864, 3576832));
+ c = abs(find_green (12, 32, 2383920, 2387016));
+ if (i < c) {
SWAP(i,c);
load_flags = 24;
}