With my pkgsrc ufraw maintainer hat, I got a bug report:

http://gnats.netbsd.org/47642

which has two patches for Solaris (said to have been sent "upstream",
which is here, but I haven't found them).  I have copied the submitter
in hopes of speeding the resolution.

The first patch is casts an unsigned to int in passing to pow.  I don't
understand why unsigned can't be promoted to double and why this is
needed.

The second one is perhaps about compiler vs platform.

--- dcraw.cc.orig       2013-03-08 03:57:35.000000000 +0000
+++ dcraw.cc
@@ -2253,7 +2253,7 @@ void CLASS lossy_dng_load_raw()
       coeff[i] = getreal(12);
     for (i=0; i < 256; i++) {
       for (tot=j=0; j <= deg; j++)
-       tot += coeff[j] * pow(i/255.0, j);
+       tot += coeff[j] * pow(i/255.0, (int)j);
       curve[c][i] = tot*0xffff;
     }
   }



--- dcraw_indi.c.orig   2013-03-05 03:40:55.000000000 +0000
+++ dcraw_indi.c
@@ -148,7 +148,7 @@ void CLASS wavelet_denoise_INDI(ushort(*
     if ((nc = colors) == 3 && filters) nc++;
     progress(PROGRESS_WAVELET_DENOISE, -nc * 5);
 #ifdef _OPENMP
-#ifdef __sun                   /* Fix bug #3205673 - NKBJ */
+#ifdef __SUNPRO_C                      /* Fix bug #3205673 - NKBJ */
     #pragma omp parallel for                           \
     default(none)                                      \
     shared(nc,image,size,noise)                                \

(From the PR, it is noted that http://sourceforge.net/p/ufraw/bugs/275/
is an earlier iteration of this.)

Attachment: pgpsD4JRqOUV1.pgp
Description: PGP signature

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
ufraw-devel mailing list
ufraw-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ufraw-devel

Reply via email to