summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-05-29 23:35:18 +0000
committerdd <dd@FreeBSD.org>2001-05-29 23:35:18 +0000
commit6c001393ecfe2e244ecbe637ac5258fc9d8a5ba1 (patch)
treeac09d9d4d78166e193d9ba9e16bed06c99ed1320 /usr.bin
parent9a3cecd14f95397d8c188493122ba6cc81c2de49 (diff)
downloadFreeBSD-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
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/jot/jot.c2
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");
}
OpenPOWER on IntegriCloud