From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id C6D403852209; Wed, 23 Nov 2022 14:39:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C6D403852209 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669214345; bh=urGuWDBKkzponMwfsY6hT+mLQfuwV79Yikc0cl0oWyA=; h=From:To:Subject:Date:From; b=A5otCH+LSo3msgtzeG04sVO/4Pj4ya8udNI7JKpsU1+1vn9WSWs9DJCzSM1jPYr1B wvhJrnj6rD+IK4my8AP1OCynVhiXno5ruFWb1La8snuNkbFAtHyC5W1CneOFYzlDCl Hi33BkczFL+IijKM7pMmHASm8V4f+omUtuzSvbiE= 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: 6349c03d42f4949ef47f8b3a1612e06d120d3c35 X-Git-Newrev: 13de83e5cfee8c5f79e04e10e22b88959481e50b Message-Id: <20221123143905.C6D403852209@sourceware.org> Date: Wed, 23 Nov 2022 14:39:05 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=13de83e5cfee8c5f79e04e10e22b88959481e50b commit 13de83e5cfee8c5f79e04e10e22b88959481e50b 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