PATCH: Use "unsigned long long int" in x86-64 __makecontext

Richard Henderson rth@twiddle.net
Fri Mar 16 18:02:00 GMT 2012


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.


r~



More information about the Libc-alpha mailing list