rand.c (rand): Wrap the irand() call from the previous commit in prefix.
authorSteve Kargl <sgk@troutmask.apl.washington.edu>
Wed, 30 Jun 2004 08:21:54 +0000 (08:21 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Wed, 30 Jun 2004 08:21:54 +0000 (08:21 +0000)
* intrinsics/rand.c (rand): Wrap the irand() call from the previous
commit in prefix.

Co-Authored-By: Steven Bosscher <stevenb@suse.de>
From-SVN: r83895

libgfortran/ChangeLog
libgfortran/intrinsics/rand.c

index 749b11f3e6d20e036585cbc068f807dfc29c1d94..507383d89755c95255c0509c581eed5d027b411a 100644 (file)
@@ -1,3 +1,9 @@
+2004-06-30  Steve Kargl  <sgk@troutmask.apl.washington.edu>
+           Steven Bosscher  <stevenb@suse.de>
+
+       * intrinsics/rand.c (rand): Wrap the irand() call from the previous
+       commit in prefix.
+
 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
        Paul Brook  <paul@codesourcery.com>
 
index 4678de4aa0a10ebc2aabc89b80e2d71be19c806f..d59e168837114f3f4959dd601c313bb7c9295bf3 100644 (file)
@@ -82,5 +82,5 @@ prefix(irand) (GFC_INTEGER_4 *i)
 GFC_REAL_4
 prefix(rand) (GFC_INTEGER_4 *i)
 {
-  return normalize_r4_i4 (irand (i) - 1, GFC_RAND_M1 - 1);
+  return normalize_r4_i4 (prefix(irand) (i) - 1, GFC_RAND_M1 - 1);
 }