From 1e8d4241f72cd1f92a726d9c698dadf65a57116e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 17 May 2022 08:16:56 +0200 Subject: [PATCH] third_party: fix 32-bit heimdal build Bug: https://bugzilla.samba.org/show_bug.cgi?id=15068 Signed-off-by: Volker Lendecke --- third_party/heimdal/lib/asn1/gen_template.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/heimdal/lib/asn1/gen_template.c b/third_party/heimdal/lib/asn1/gen_template.c index 883eab4b671..e053a8bdd8b 100644 --- a/third_party/heimdal/lib/asn1/gen_template.c +++ b/third_party/heimdal/lib/asn1/gen_template.c @@ -830,7 +830,7 @@ template_object_set(IOSObjectSet *os, Field *typeidfield, Field *opentypefield) } free(objects); - tlist_header(tl, "{ 0, 0, ((void *)(uintptr_t)%lu) }", nobjs); + tlist_header(tl, "{ 0, 0, ((void *)(uintptr_t)%zu) }", nobjs); tlist_print(tl); tlist_add(tl); os->symbol->emitted_template = 1; @@ -970,7 +970,7 @@ template_members(struct templatehead *temp, "{ A1_OP_NAME, %d, \"%s\" }", (int)m->val, m->name); nmemb++; } - tlist_header(tl, "{ 0, 0, ((void *)(uintptr_t)%lu) }", nmemb); + tlist_header(tl, "{ 0, 0, ((void *)(uintptr_t)%zu) }", nmemb); /* XXX Accidentally O(N^2)? */ if (!tlist_find_dup(tl)) { tlist_print(tl); -- 2.30.2