summaryrefslogtreecommitdiff
path: root/gl/lib/randint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/lib/randint.c')
-rw-r--r--gl/lib/randint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gl/lib/randint.c b/gl/lib/randint.c
index cb39221b4..f3de3fc9a 100644
--- a/gl/lib/randint.c
+++ b/gl/lib/randint.c
@@ -125,7 +125,7 @@ randint_genmax (struct randint_source *s, randint genmax)
randint randmax = s->randmax;
randint choices = genmax + 1;
- for (;;)
+ while (1)
{
if (randmax < genmax)
{