SFEopenexr.spec: bump to 1.7.0, use Sun Studio
SFElibpano13.spec: initial spec
SFElibglew.spec: bump to 1.5.7
SFEilmbase.spec: bump to 1.0.2, use Sun Studio
--- openexr-1.7.0/exrmakepreview/makePreview.cpp Mon Jun 5 04:04:52 2006
+++ openexr-1.7.0-patch/exrmakepreview/makePreview.cpp Sat Dec 18 21:19:41 2010
@@ -78,7 +78,7 @@
// at 0.0, 0.0, and 5.0 respectively.
//
- float x = max (0.f, h * m);
+ float x = max ((double)0.f, (double)h * m);
if (x > 1)
x = 1 + knee (x - 1, 0.184874f);
@@ -132,7 +132,7 @@
preview.r = gamma (pixel.r, m);
preview.g = gamma (pixel.g, m);
preview.b = gamma (pixel.b, m);
- preview.a = int (clamp (pixel.a * 255.f, 0.f, 255.f) + .5f);
+ preview.a = int (clamp ((double)pixel.a * 255.f, (double)0.f, (double)255.f) + .5f);
}
}
}