[pypy-dev] [pypy-commit] pypy default: Detect objects with h_tid==-42
Armin Rigo
arigo at tunes.org
Wed Apr 22 18:12:17 CEST 2015
Hi Maciej,
On 22 April 2015 at 08:59, Maciej Fijalkowski <fijall at gmail.com> wrote:
> Are you sure this is unsigned? IMO I've seen '0xffffffd5' or something
> like that.
As far as I can tell, the C code contains the declaration "Signed
h_tid;". So I would guess that hdr['h_tid'] returns a signed integer.
The next line masks it to a number between 0 and 2**32-1, so then -42
would become 0xffffffd5. But I didn't actually check; please fix if
I'm wrong.
A bientôt,
Armin.
More information about the pypy-dev
mailing list