mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
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
This commit is contained in:
parent
2195de46d3
commit
f878e83f9d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77441
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user