From owner-cvs-all Wed May 29 9:36:44 2002 Delivered-To: cvs-all@freebsd.org Received: from chiark.greenend.org.uk (chiark.greenend.org.uk [212.135.138.206]) by hub.freebsd.org (Postfix) with ESMTP id 7FD6B37B405; Wed, 29 May 2002 09:36:29 -0700 (PDT) Received: from fanf by chiark.greenend.org.uk with local (Exim 3.12 #1) id 17D6Qv-0005Nx-00 (Debian); Wed, 29 May 2002 17:36:21 +0100 Date: Wed, 29 May 2002 17:36:21 +0100 From: Tony Finch To: Marcel Moolenaar Cc: Poul-Henning Kamp , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/sys gpt.h Message-ID: <20020529173621.B11817@chiark.greenend.org.uk> References: <200205290258.g4T2wgF83137@freefall.freebsd.org> <9551.1022648961@critter.freebsd.dk> <20020529053653.GA306@dhcp01.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020529053653.GA306@dhcp01.pn.xcllnt.net>; from marcel@xcllnt.net on Tue, May 28, 2002 at 10:36:53PM -0700 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, May 28, 2002 at 10:36:53PM -0700, Marcel Moolenaar wrote: > > I see what you mean, but packing and unpacking is not the problem. It's > sizeof() that's got it wrong. I don't quite understand why sizeof() > would yield a size that's 4 bytes longer than the structure actually > is. It smells like a gcc bug, but I assume for now I'm just missing > something. It's required for correct alignment of the uint64_t members when you create an array of the struct. Tony. -- f.a.n.finch http://dotat.at/ CROMARTY: SOUTH OR SOUTHWEST 4 OR 5. SHOWERS. GOOD. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message