mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 05:01:24 +00:00
Interestingly, intval-- works properly, but unsignedval-- does not (test case fails). This is why menus blow up when opening the load/save sub-menu.
17 lines
207 B
R
17 lines
207 B
R
int iter_check (unsigned count)
|
|
{
|
|
unsigned i = count;
|
|
int iters = 0;
|
|
while (i-- > 0) {
|
|
iters++;
|
|
}
|
|
return iters == count;
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
int ret = 0;
|
|
ret |= !iter_check (1);
|
|
return ret;
|
|
}
|