From beabab5904b43e49b479b6f722924f496f649109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Schl=C3=BCter?= Date: Wed, 30 Jun 2004 00:52:58 +0200 Subject: Paul Brook 2004-06-29 Tobias Schlueter Paul Brook * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix comments. * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4. Co-Authored-By: Paul Brook From-SVN: r83880 --- libgfortran/intrinsics/rand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgfortran/intrinsics/rand.c') diff --git a/libgfortran/intrinsics/rand.c b/libgfortran/intrinsics/rand.c index d9add00..4678de4 100644 --- a/libgfortran/intrinsics/rand.c +++ b/libgfortran/intrinsics/rand.c @@ -82,5 +82,5 @@ prefix(irand) (GFC_INTEGER_4 *i) GFC_REAL_4 prefix(rand) (GFC_INTEGER_4 *i) { - return normalize_r4_i4 (i - 1, GFC_RAND_M1); + return normalize_r4_i4 (irand (i) - 1, GFC_RAND_M1 - 1); } -- cgit v1.1