mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 21:21:14 +00:00
And, nicely, simplify it quite a bit. I'm not sure why I didn't thinkg of this approach before. While the ruamoko back-end doesn't support matrices yet, the expressions are handled. As a side effect, type checking on comparisons is "stricter" in that more potentially bogus comparisons (eg, int-float) are caught, resulting in a few warnings in ruamoko code and even finding a couple of bugs.
17 lines
218 B
R
17 lines
218 B
R
int iter_check (unsigned count)
|
|
{
|
|
unsigned i = count;
|
|
int iters = 0;
|
|
while (i-- > 0) {
|
|
iters++;
|
|
}
|
|
return (unsigned) iters == count;
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
int ret = 0;
|
|
ret |= !iter_check (1);
|
|
return ret;
|
|
}
|