Skip to content

Commit

Permalink
Missing cast can result in an error on certain compilers
Browse files Browse the repository at this point in the history
Fixes #456
  • Loading branch information
mm2 committed Jul 31, 2024
1 parent 54b83a4 commit aa70a95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion testbed/testplugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ static cmsPluginTag HiddenTagPluginSample = {

static cmsPluginTag HiddenTagPluginSample2 = {

{ cmsPluginMagicNumber, 2060, cmsPluginTagSig, &HiddenTagPluginSample},
{ cmsPluginMagicNumber, 2060, cmsPluginTagSig, (cmsPluginBase*) &HiddenTagPluginSample},
SigInt32, { 1, 1, { cmsSigUInt32ArrayType }, NULL }
};

Expand Down
5 changes: 2 additions & 3 deletions testbed/zoo_icc.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,12 @@ void ReadAllRAWTags(cmsHPROFILE h)
{
cmsInt32Number i, n;
cmsTagSignature sig;
cmsInt32Number len;


n = cmsGetTagCount(h);
for (i=0; i < n; i++) {

sig = cmsGetTagSignature(h, i);
len = cmsReadRawTag(h, sig, NULL, 0);
cmsReadRawTag(h, sig, NULL, 0);
}
}

Expand Down

0 comments on commit aa70a95

Please sign in to comment.