From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 8B782385151B; Thu, 27 Oct 2022 13:49:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8B782385151B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666878544; bh=WZYa6PaT6Wje91iqHKwFLLgmwuPC2dwWJ2Riy7S8RIE=; h=From:To:Subject:Date:From; b=LXubErjpAwNPjSPrLtiy60V6E2332Pl8dQcJyNBF7o5osCUvAWD86vAdOoIeUtRfr O/tqw3/UIFbL9h8U2iw6Zzt4Ag17f6bnVmkNiGoQUj3gqDMbNX/vwSCsPfdR+rpfOk FscqZKUALvu+leY9bqcxHSPXtn6LDBmn/93gm8Rs= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] Use uintptr_t in fts for pointer alignment X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: 4c22e2fa7df607356f4e3b261277fd77f8de41aa X-Git-Newrev: edbd249ed879af9df0052747b348664c8a0d7f48 Message-Id: <20221027134904.8B782385151B@sourceware.org> Date: Thu, 27 Oct 2022 13:49:04 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=edbd249ed879af9df0052747b348664c8a0d7f48 commit edbd249ed879af9df0052747b348664c8a0d7f48 Author: Szabolcs Nagy Date: Tue Jul 12 10:59:16 2022 +0100 Use uintptr_t in fts for pointer alignment The code assumed unsigned long can represent pointers. Diff: --- io/fts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/io/fts.c b/io/fts.c index 283cf1791a..5a0a47a360 100644 --- a/io/fts.c +++ b/io/fts.c @@ -55,6 +55,7 @@ static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94"; #include #include #include +#include #include #include #include @@ -67,7 +68,7 @@ static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94"; #endif /* Align P to that size. */ #ifndef ALIGN -#define ALIGN(p) (((unsigned long int) (p) + ALIGNBYTES) & ~ALIGNBYTES) +#define ALIGN(p) (((uintptr_t) (p) + ALIGNBYTES) & ~ALIGNBYTES) #endif