summaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-23 16:18:22 +0000
committerpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-23 16:18:22 +0000
commitf05836473307c0c7dd3f57419c071e1db8aaf920 (patch)
tree482829a5fdb6287afaecbfb91c09bd175ae69cdf /libgfortran
parente68b1600001f11764129cc896e7744d0df2aecbd (diff)
downloadgcc-f05836473307c0c7dd3f57419c071e1db8aaf920.tar.gz
* random.c (random_seed): Use correct variable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82167 138bc75d-0d04-0410-961f-82ee72b054a4
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. */