This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]