summaryrefslogtreecommitdiff
path: root/testbed
diff options
context:
space:
mode:
authorMarti Maria <info@littlecms.com>2013-05-02 15:42:59 +0200
committerMarti Maria <info@littlecms.com>2013-05-02 15:42:59 +0200
commit16c0b5d39997bb25e3f6228874d83bfe1f25ee5b (patch)
treeea272508d3fde95a360cf1c03a8c9e81b045fa7e /testbed
parent314c682c6d89b274054cc47cba324eb5e623b860 (diff)
downloadlcms2-16c0b5d39997bb25e3f6228874d83bfe1f25ee5b.tar.gz
Consolidated changes
Diffstat (limited to 'testbed')
-rw-r--r--testbed/testcms2.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/testbed/testcms2.c b/testbed/testcms2.c
index 7095fe8..8f1dfcf 100644
--- a/testbed/testcms2.c
+++ b/testbed/testcms2.c
@@ -7402,14 +7402,14 @@ cmsInt32Number CheckFloatSegments(void)
cmsCurveSegment Seg[3];
// Initialize segmented curve part up to 0.1
- Seg[0].x0 = (float)-1e22; // -infinity
+ Seg[0].x0 = -1e22f; // -infinity
Seg[0].x1 = 0.1f;
- Seg[0].Type = 6; // Y = (a * X + b) ^ Gamma + c
- Seg[0].Params[0] = 1.0; // gamma
- Seg[0].Params[1] = 0.9; // a
- Seg[0].Params[2] = 0; // b
- Seg[0].Params[3] = 0.1; // c
- Seg[0].Params[4] = 0;
+ Seg[0].Type = 6; // Y = (a * X + b) ^ Gamma + c
+ Seg[0].Params[0] = 1.0f; // gamma
+ Seg[0].Params[1] = 0.9f; // a
+ Seg[0].Params[2] = 0.0f; // b
+ Seg[0].Params[3] = 0.1f; // c
+ Seg[0].Params[4] = 0.0f;
// From zero to 1
Seg[1].x0 = 0.1f;
@@ -7426,14 +7426,14 @@ cmsInt32Number CheckFloatSegments(void)
// from 1 to +infinity
Seg[2].x0 = 0.9f;
- Seg[2].x1 = (float)1e22; // +infinity
+ Seg[2].x1 = 1e22f; // +infinity
Seg[2].Type = 6;
- Seg[2].Params[0] = 1.0;
- Seg[2].Params[1] = 0.9;
- Seg[2].Params[2] = 0;
- Seg[2].Params[3] = 0.1;
- Seg[2].Params[4] = 0;
+ Seg[2].Params[0] = 1.0f;
+ Seg[2].Params[1] = 0.9f;
+ Seg[2].Params[2] = 0.0f;
+ Seg[2].Params[3] = 0.1f;
+ Seg[2].Params[4] = 0.0f;
curve = cmsBuildSegmentedToneCurve(0, 3, Seg);
@@ -7534,7 +7534,7 @@ void SpeedTest16bitsCMYK(const char * Title, cmsHPROFILE hlcmsProfileIn, cmsHPRO
Scanline_rgb2 *In;
cmsUInt32Number Mb;
- if (hlcmsProfileOut == NULL)
+ if (hlcmsProfileIn == NULL || hlcmsProfileOut == NULL)
Die("Unable to open profiles");
hlcmsxform = cmsCreateTransformTHR(DbgThread(), hlcmsProfileIn, TYPE_CMYK_16,