123456789101112131415161718192021222324252627 |
- $OpenBSD: patch-dcraw_cc,v 1.3 2017/05/05 13:19:24 espie Exp $
- can't find abs of uint with clang
- fix stolen from ufraw-current
- Index: dcraw.cc
- --- dcraw.cc.orig
- +++ dcraw.cc
- @@ -9240,13 +9240,13 @@ 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)) {
- - SWAP(i,c);
- + float g1 = find_green (12, 32, 1188864, 3576832);
- + float g2 = find_green (12, 32, 2383920, 2387016);
- + if (fabsf(g1) < fabsf(g2)) {
- + SWAP(g1,g2);
- load_flags = 24;
- }
- - if ((int) i < 0) filters = 0x61616161;
- + if (g1 < 0) filters = 0x61616161;
- }
- } else if (fsize == 5869568) {
- if (!timestamp && minolta_z2()) {
|