Messages in this thread | | | Subject | Re: MSEC_TO_JIFFIES is messed up... | From | Zan Lynx <> | Date | Wed, 12 May 2004 15:56:57 -0600 |
| |
On Wed, 2004-05-12 at 15:12, Ingo Molnar wrote: > * Davide Libenzi <davidel@xmailserver.org> wrote: > > > int foo(int i) { > > > > > > return i * 1000 / 1000; > > } > > try unsigned and you'll see: [snip]
I forgot to add that yes I know i * (x / 1000) is different than i * x / 1000 in integer math. Please don't hit me. -- Zan Lynx <zlynx@acm.org> [unhandled content-type:application/pgp-signature] | |