|
From: | Paolo Bonzini |
Subject: | Re: GCC optimizes integer overflow: bug or feature? |
Date: | Fri, 22 Dec 2006 09:20:28 +0100 |
User-agent: | Thunderbird 1.5.0.9 (Macintosh/20061207) |
Or you can do, since elsewhere in the code you compute time_t_max: for (j = 1; j <= time_t_max / 2 + 1; j *= 2)
No, this does not work. It would work to have: for (j = 1;;) { if (j > time_t_max / 2) break; j *= 2; } Oops. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |