From 391f5345ac8ef9219254fe08ed79863ec6a7ec51 Mon Sep 17 00:00:00 2001 From: Marti Maria Date: Mon, 4 Nov 2024 20:18:30 +0100 Subject: [PATCH] clarify unsigned substraction Per #463 --- src/cmstypes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmstypes.c b/src/cmstypes.c index 667bf167..ee7e2847 100644 --- a/src/cmstypes.c +++ b/src/cmstypes.c @@ -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;