summaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorSteven G. Kargl <kargls@comcast.net>2004-05-23 16:18:22 +0000
committerPaul Brook <pbrook@gcc.gnu.org>2004-05-23 16:18:22 +0000
commit322c24252ef6bd43aa646c7a7ebf015939e26991 (patch)
tree482829a5fdb6287afaecbfb91c09bd175ae69cdf /libgfortran
parent40e929f3989b793b48d85bb18004030d9df34b54 (diff)
downloadgcc-322c24252ef6bd43aa646c7a7ebf015939e26991.tar.gz
* random.c (random_seed): Use correct variable.
From-SVN: r82167
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog4
-rw-r--r--libgfortran/intrinsics/random.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index e6cfffb132c..edf4919f3b7 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,7 @@
+2004-05-23 Steven G. Kargl <kargls@comcast.net>
+
+ * random.c (random_seed): Use correct variable.
+
2004-05-22 Steven G. Kargl <kargls@comcast.net>
* intrinsics/system_clock: New file.
diff --git a/libgfortran/intrinsics/random.c b/libgfortran/intrinsics/random.c
index 120c9517fa2..09a3fea62dd 100644
--- a/libgfortran/intrinsics/random.c
+++ b/libgfortran/intrinsics/random.c
@@ -121,7 +121,7 @@ random_seed (GFC_INTEGER_4 * size, const gfc_array_i4 * put,
abort ();
/* If this is the case the array is a temporary */
- if (get->dim[0].stride == 0)
+ if (put->dim[0].stride == 0)
return;
/* This code now should do correct strides. */