diff options
author | dd <dd@FreeBSD.org> | 2001-05-29 23:35:18 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-05-29 23:35:18 +0000 |
commit | 6c001393ecfe2e244ecbe637ac5258fc9d8a5ba1 (patch) | |
tree | ac09d9d4d78166e193d9ba9e16bed06c99ed1320 | |
parent | 9a3cecd14f95397d8c188493122ba6cc81c2de49 (diff) | |
download | FreeBSD-src-6c001393ecfe2e244ecbe637ac5258fc9d8a5ba1.zip FreeBSD-src-6c001393ecfe2e244ecbe637ac5258fc9d8a5ba1.tar.gz |
Replace the cast I removed in rev. 1.16 with a slightly less evil one
(well, at least one that gcc doesn't complain about). This fixes -r,
which rev. 1.16 broke.
Submitted by: bde
-rw-r--r-- | usr.bin/jot/jot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/jot/jot.c b/usr.bin/jot/jot.c index 5a7ce25..6a01c22 100644 --- a/usr.bin/jot/jot.c +++ b/usr.bin/jot/jot.c @@ -277,7 +277,7 @@ main(argc, argv) if (randomize) { *x = (ender - begin) * (ender > begin ? 1 : -1); for (*i = 1; *i <= reps || infinity; (*i)++) { - *y = arc4random() / ULONG_MAX; + *y = arc4random() / (double)ULONG_MAX; if (putdata(*y * *x + begin, reps - *i)) errx(1, "range error in conversion"); } |