[argyllcms/f16] Fix the ColorHug patch to correctly report negative numbers.

Richard Hughes rhughes at fedoraproject.org
Fri Jan 20 17:36:48 UTC 2012


commit 99c6c513bfbefe3ac5f30a01fe69649ddb3e3e15
Author: Richard Hughes <richard at hughsie.com>
Date:   Fri Jan 20 17:35:59 2012 +0000

    Fix the ColorHug patch to correctly report negative numbers.

 ...dd-an-experimental-ColorHug-sensor-driver.patch |    2 +-
 argyllcms.spec                                     |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/0001-Add-an-experimental-ColorHug-sensor-driver.patch b/0001-Add-an-experimental-ColorHug-sensor-driver.patch
index 2edd6e8..75ba3d3 100644
--- a/0001-Add-an-experimental-ColorHug-sensor-driver.patch
+++ b/0001-Add-an-experimental-ColorHug-sensor-driver.patch
@@ -301,7 +301,7 @@ index 0000000..90f1b7e
 +}
 +
 +/* Converts a packed float to a double */
-+static double packed_float_to_double (uint32_t pf)
++static double packed_float_to_double (int32_t pf)
 +{
 +	return (double) pf / (double) 0x10000;
 +}
diff --git a/argyllcms.spec b/argyllcms.spec
index 6742477..7657f12 100644
--- a/argyllcms.spec
+++ b/argyllcms.spec
@@ -1,6 +1,6 @@
 Name:    argyllcms
 Version: 1.3.5
-Release: 4%{?dist}
+Release: 5%{?dist}
 Summary: ICC compatible color management system
 Group:   User Interface/X
 License: GPLv3 and MIT
@@ -87,6 +87,9 @@ rm -rf %{buildroot}
 %doc doc/*.html doc/*.jpg doc/*.txt
 
 %changelog
+* Fri Jan 20 2012 Richard Hughes <rhughes at redhat.com> - 1.3.5-5
+- Fix the ColorHug patch to correctly report negative numbers.
+
 * Sun Dec 11 2011 Richard Hughes <rhughes at redhat.com> - 1.3.5-4
 - Build and install ccxxmake, iccdump and icclu.
 


More information about the scm-commits mailing list