summaryrefslogtreecommitdiff
path: root/testbed
diff options
context:
space:
mode:
authorMarti Maria <info@littlecms.com>2011-08-23 16:14:38 +0200
committerMarti Maria <info@littlecms.com>2011-08-23 16:14:38 +0200
commit1e4fab616c4eef7e3ea131386e92fcf34c54f96e (patch)
treea3273563945613eebf0fde8f05a651e1c7476b6a /testbed
parent119ebd85ba6ea97078677280365f0df042b8a829 (diff)
downloadlcms2-1e4fab616c4eef7e3ea131386e92fcf34c54f96e.tar.gz
Abs. colorimetric intent fixup
Diffstat (limited to 'testbed')
-rw-r--r--testbed/testcms2.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/testbed/testcms2.c b/testbed/testcms2.c
index 13fd7fc..fd6c16c 100644
--- a/testbed/testcms2.c
+++ b/testbed/testcms2.c
@@ -75,8 +75,18 @@ static cmsUInt32Number SingleHit, MaxAllocated=0, TotalMemory=0;
typedef struct {
cmsUInt32Number KeepSize;
cmsContext WhoAllocated;
- cmsUInt32Number Align8_1; // Some systems do need pointers aligned to 8-byte boundaries.
- cmsUInt32Number Align8_2;
+
+ union {
+ cmsUInt64Number HiSparc;
+
+ // '_cmsMemoryBlock' block is prepended by the
+ // allocator for any requested size. Thus, union holds
+ // "widest" type to guarantee proper '_cmsMemoryBlock'
+ // alignment for any requested size.
+
+ } alignment;
+
+
} _cmsMemoryBlock;
#define SIZE_OF_MEM_HEADER (sizeof(_cmsMemoryBlock))
@@ -5975,6 +5985,7 @@ int CheckRGBPrimaries(void)
cmsCIExyYTRIPLE tripxyY;
cmsBool result;
+ cmsSetAdaptationState(0);
hsRGB = cmsCreate_sRGBProfileTHR(DbgThread());
if (!hsRGB) return 0;