lemon/random.h
changeset 1178 61fdd06833a6
parent 1134 f70f688d9ef9
child 1185 c8d0179a32a2
     1.1 --- a/lemon/random.h	Wed Oct 17 18:56:39 2018 +0200
     1.2 +++ b/lemon/random.h	Mon Oct 15 23:22:18 2018 +0200
     1.3 @@ -342,7 +342,7 @@
     1.4          do {
     1.5            num = rnd() & mask;
     1.6          } while (num > max);
     1.7 -        return num;
     1.8 +        return static_cast<Result>(num);
     1.9        }
    1.10      };
    1.11