[haiku-commits] Re: r39462 - in haiku/trunk: headers/os/app headers/private/app src/kits/app

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 17 Nov 2010 15:42:47 -0500

On Wed, Nov 17, 2010 at 3:33 PM, Clemens Zeidler
<clemens.zeidler@xxxxxxxxxxxxxx> wrote:
>>> -                       uint32                          _reserved[12];
>>> +                       uint32                          _reserved[11];
>>> +                       uint32                          fHasBeenRestored;
> is bool 32 bit in size? thought it is only one bit and was not sure how to

Bool is usually one byte, in which case the easiest thing in order to
maintain class size would've been:

uint32 _reserved[11];
char _reserved2[3];
bool fHasBeenRestored;

or alternatively:
char _reserved[47];
bool fHasBeenRestored;



Other related posts: