Vicente Olivert Riera <[email protected]> writes:

> Making the cast to a pointer-sized integer, and then to a pointer fixes
> the problem.

> -        if (dladdr((void *)(pip.start_ip + off), &dlinfo) && 
> dlinfo.dli_fname &&
> +        if (dladdr((void *)(long)(pip.start_ip + off), &dlinfo) && 
> dlinfo.dli_fname &&

I'd suggest using uintptr_t instead of long if you want a pointer-sized
integer.

-- 
-keith

Attachment: signature.asc
Description: PGP signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to