aboutsummaryrefslogtreecommitdiff
path: root/src/Hyperslab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Hyperslab.c')
-rw-r--r--src/Hyperslab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hyperslab.c b/src/Hyperslab.c
index dba8d8a..2795c8c 100644
--- a/src/Hyperslab.c
+++ b/src/Hyperslab.c
@@ -91,7 +91,7 @@
otherwise copy element-wise in a loop */ \
if (downsample[0] == 1) \
{ \
- memcpy (typed_hdata, typed_vdata, \
+ memcpy (typed_hdata, typed_vdata + vindex, \
dim0_elements * sizeof (*typed_hdata)); \
typed_hdata += dim0_elements; \
} \