PATCH: Use "unsigned long long int" in x86-64 __makecontext
H.J. Lu
hjl.tools@gmail.com
Fri Mar 16 18:08:00 GMT 2012
On Fri, Mar 16, 2012 at 11:01 AM, Richard Henderson <rth@twiddle.net> wrote:
> On 03/16/12 10:56, H.J. Lu wrote:
>> - ucp->uc_mcontext.gregs[REG_RIP] = (long int) func;
>> + ucp->uc_mcontext.gregs[REG_RIP] = (unsigned long int) func;
>> /* Setup rbx.*/
>> - ucp->uc_mcontext.gregs[REG_RBX] = (long int) &sp[idx_uc_link];
>> - ucp->uc_mcontext.gregs[REG_RSP] = (long int) sp;
>> + ucp->uc_mcontext.gregs[REG_RBX] = (unsigned long int) &sp[idx_uc_link];
>> + ucp->uc_mcontext.gregs[REG_RSP] = (unsigned long int) sp;
>
> At minimum I think these should be uintptr_t.
>
I will do that.
Thanks.
--
H.J.
More information about the Libc-alpha
mailing list