summaryrefslogtreecommitdiff
path: root/libgfortran/intrinsics
diff options
context:
space:
mode:
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>2004-06-30 00:52:58 +0200
committerTobias Schlüter <tobi@gcc.gnu.org>2004-06-30 00:52:58 +0200
commitbeabab5904b43e49b479b6f722924f496f649109 (patch)
tree33f194e6e87cabdd4b26008174916dc89723b98d /libgfortran/intrinsics
parentdfdf6a9440609d8a58c6625b31d34509dd2df838 (diff)
downloadgcc-beabab5904b43e49b479b6f722924f496f649109.tar.gz
Paul Brook <paul@codesourcery.com>
2004-06-29 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de> Paul Brook <paul@codesourcery.com> * 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 <paul@codesourcery.com> From-SVN: r83880
Diffstat (limited to 'libgfortran/intrinsics')
-rw-r--r--libgfortran/intrinsics/rand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/intrinsics/rand.c b/libgfortran/intrinsics/rand.c
index d9add00af6f..4678de4aa0a 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);
}