Subject: Re: OpenFirmware, node numbers, handles etc.
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Michael Lorenz <email@example.com>
Date: 11/28/2007 09:33:38
-----BEGIN PGP SIGNED MESSAGE-----
On Nov 28, 2007, at 01:36, der Mouse wrote:
>> is there a good reason why OF handles, node numbers etc. are
>> represented as int in our code? As far as I can tell using a signed
>> type here only causes trouble since at least node numbers may well
>> have the upper bit set.
> Perhaps I'm missing something, but, what difference does it make if
> some of the values happen to be negative? They're just opaque
People (including myself at times ) keep running into the trap of
checking node numbers for >0, which apparently works on some machines
( not macs though ). Since there is no reason for node numbers and
handles to be signed as far as I can see I want to make them unsigned.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
-----END PGP SIGNATURE-----