diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-03-17 16:32:14 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-03-17 16:32:14 +0000 |
| commit | 2eaf474aeaa644c3dda0d6d927a41032d0ae6755 (patch) | |
| tree | 58229c570fe44a652f20ff9cf81ae0a85e0d4a27 /gnu | |
| parent | 94fa7afda349eb3922d4c0173f95ef8f0ae2bf5f (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/awk/builtin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/awk/builtin.c b/gnu/usr.bin/awk/builtin.c index c07d0d83010e..00c52e765580 100644 --- a/gnu/usr.bin/awk/builtin.c +++ b/gnu/usr.bin/awk/builtin.c @@ -938,7 +938,7 @@ do_rand(tree) NODE *tree; { if (firstrand) { - (void) initstate((unsigned) 1, state, sizeof state); + (void) initstate((unsigned long) 1, state, sizeof state); srandom(1); firstrand = 0; } @@ -954,7 +954,7 @@ NODE *tree; long ret = save_seed; /* SVR4 awk srand returns previous seed */ if (firstrand) - (void) initstate((unsigned) 1, state, sizeof state); + (void) initstate((unsigned long) 1, state, sizeof state); else (void) setstate(state); |
