Re: [PATCH 2/4] perf_event: fix getting point

Xiao Guangrong
2009-12-16T01:34:13Z

Frederic Weisbecker wrote:

>> We can't do it in x86_32:
>> error: cast to pointer from integer of different size
>
>
> You can just do:
>
> ptr = (void *)(unsigned long)value;
>

Yeah, i forget this, it work well both in 32/64 machine.

Thanks,
Xiao