summaryrefslogtreecommitdiff
path: root/otherlibs/bigarray
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2005-09-24 08:38:45 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2005-09-24 08:38:45 +0000
commita373f34b2a0434dcdde3954b6fbb8099a4696b57 (patch)
tree2356631110f9573d9dddbaa9d0334b3126dee41d /otherlibs/bigarray
parentf10f5688073b2fc320e77362d705406e206cb31a (diff)
downloadocaml-a373f34b2a0434dcdde3954b6fbb8099a4696b57.tar.gz
Bug in Array3.of_array (PR#3793)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7070 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/bigarray')
-rw-r--r--otherlibs/bigarray/bigarray.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/otherlibs/bigarray/bigarray.ml b/otherlibs/bigarray/bigarray.ml
index 30d7bb6734..e78b77b64b 100644
--- a/otherlibs/bigarray/bigarray.ml
+++ b/otherlibs/bigarray/bigarray.ml
@@ -188,7 +188,7 @@ module Array3 = struct
if Array.length col <> dim3 then
invalid_arg("Bigarray.Array3.of_array: non-cubic data");
for k = 0 to dim3 - 1 do
- set ba (i + ofs) (j + ofs) (k + ofs) col.(j)
+ set ba (i + ofs) (j + ofs) (k + ofs) col.(k)
done
done
done;