Re: PATCH: jiffies is UL

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Tue Apr 08 2003 - 07:01:11 EST


On Maw, 2003-04-08 at 01:40, Andrew Morton wrote:
> > -#define INITIAL_JIFFIES ((unsigned int) (-300*HZ))
> > +#define INITIAL_JIFFIES ((unsigned long) (-300*HZ))
> >
>
> No, this is deliberate. It triggers a wrap from 0x00000000ffffffff to
> 0x0000000100000000 after 5 minutes uptime on 64-bit machines, which has found
> bugs.
>
> The fix is to add a comment, so this patch stops coming out ;)

I which case it should be ((unsigned long)((unsigned int ....))

so the assignment type is right

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:15 EST