[pypy-dev] [pypy-commit] pypy default: Detect objects with h_tid==-42
Armin Rigo
arigo at tunes.org
Thu Apr 23 10:42:40 CEST 2015
Hi Alex,
On 22 April 2015 at 19:31, Alex Stewart <foogod at gmail.com> wrote:
> Sorry, I couldn't help noticing this:
>
>> if sys.maxsize < 2**32:
>> offset = tid & 0xFFFF # 32bit
>
> 0xFFFF is not 32 bit, it's 16 bit.. Should that be 0xFFFFFFFF instead?
No, this "32bit" comment means "we're running on a 32-bit machine".
We take half of the word here.
Armin
More information about the pypy-dev
mailing list