[haiku-development] Re: Building on 64bit host with -sDEBUG=1 fails

  • From: Marcus Overhagen <marcus.overhagen@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 12 Dec 2011 12:57:07 +0100

On Mon, Dec 12, 2011 at 4:00 AM, Urias McCullough <umccullough@xxxxxxxxx> wrote:
> While we were testing a full build with -sDEBUG=1 - I discovered that
> building on a 64bit host fails during the compile of libbe_build.so
> with the following error:

> cast from ‘BBlockCache::_FreeBlock*’ to ‘uint32’ loses precision

It would be enough to change the typecast from (uint32)block->next
into (uint32)(addr_t)block->next to get this fixed.

If you expand the magic1 and magic2 values to 64 bit, please also
adjust the magic numbers.

regards
Marcus

Other related posts: