Skip to content

Commit

Permalink
clarify unsigned substraction
Browse files Browse the repository at this point in the history
Per #463
  • Loading branch information
mm2 committed Nov 4, 2024
1 parent c75a823 commit 391f534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmstypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,7 @@ cmsBool Type_Text_Description_Write(struct _cms_typehandler_struct* self, cmsIO
if (!io ->Write(io, 67, Filler)) goto Error;

// possibly add pad at the end of tag
if(len_aligned - len_tag_requirement > 0)
if (len_aligned > len_tag_requirement)
if (!io ->Write(io, len_aligned - len_tag_requirement, Filler)) goto Error;

rc = TRUE;
Expand Down

0 comments on commit 391f534

Please sign in to comment.