Ticket #100 (closed defect: fixed)
[PATCH] - cast of 32 bit value to 64 bit, pthread_exit
|Reported by:||rogueresearch||Owned by:||hjelmn|
Attached patch fixes a warning on darwin:
pthread_exit ((void *)kresult);
That's rather evil. :) IOReturn is a 32bit int. On x86_64, casting it to a (64 bit) pointer is not sound.
In any case, pthread_join never uses the value.
Patch is simple, and attached.
Changed 2 years ago by rogueresearch
comment:1 Changed 2 years ago by rogueresearch
- Summary changed from PATCH - cast of 32 bit value to 64 bit, pthread_exit to [PATCH] - cast of 32 bit value to 64 bit, pthread_exit
comment:7 Changed 20 months ago by rogueresearch
- Resolution set to fixed
- Status changed from new to closed