Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37815587
en ru br
ALT Linux repositórios
S:0.23-alt0.4
5.0: 0.14.1-alt1
4.1: 0.13-alt2
4.0: 0.12-alt1

Group :: Gráficos
RPM: ufraw

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: ufraw-0.22-find_green.patch
Download


Author: nkbj <nkbj>
Date:   Sat Aug 6 04:00:25 2016 +0000
    Fix bug #407: Wrong variable type for find_green() return value.
diff --git a/dcraw.cc b/dcraw.cc
index 416fd61..bcae4f2 100644
--- a/dcraw.cc
+++ b/dcraw.cc
@@ -9341,13 +9341,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()) {
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009