mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
awk: Add missing file from 20250804 update
run.c wasn't included in the 20250804 update. Include it now. Sponsored by: Netflix
This commit is contained in:
parent
2f2a0304d0
commit
f7603feee9
1 changed files with 3 additions and 1 deletions
4
run.c
4
run.c
|
|
@ -1567,6 +1567,8 @@ Cell *assign(Node **a, int n) /* a[0] = a[1], a[0] += a[1], etc. */
|
|||
xf *= yf;
|
||||
break;
|
||||
case DIVEQ:
|
||||
if ((x->tval & CON) != 0)
|
||||
FATAL("non-constant required for left side of /=");
|
||||
if (yf == 0)
|
||||
FATAL("division by zero in /=");
|
||||
xf /= yf;
|
||||
|
|
@ -2188,7 +2190,7 @@ Cell *bltin(Node **a, int n) /* builtin functions. a[0] is type, a[1] is arg lis
|
|||
/* random() returns numbers in [0..2^31-1]
|
||||
* in order to get a number in [0, 1), divide it by 2^31
|
||||
*/
|
||||
u = (Awkfloat) random() / (0x7fffffffL + 0x1UL);
|
||||
u = (Awkfloat) random() / RAND_MAX;
|
||||
break;
|
||||
case FSRAND:
|
||||
if (isrec(x)) /* no argument provided */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue