bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 04/29] i386/i386/db_trace.c: use long instead of an int


From: Samuel Thibault
Subject: Re: [PATCH 04/29] i386/i386/db_trace.c: use long instead of an int
Date: Tue, 10 Dec 2013 00:32:53 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Marin Ramesa, le Mon 09 Dec 2013 23:57:19 +0100, a écrit :
> -             return (long *)((long)kregp + kp->offset);
> +             return (kregp + kp->offset);

Take care, this is not the same at all: kregp + 1 advances by
sizeof(*kregp) bytes, not by 1 byte. These casts really are needed.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]