summaryrefslogtreecommitdiff
path: root/tests/cppbasic/compute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cppbasic/compute.cpp')
-rw-r--r--tests/cppbasic/compute.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cppbasic/compute.cpp b/tests/cppbasic/compute.cpp
index 782410a2..471b10aa 100644
--- a/tests/cppbasic/compute.cpp
+++ b/tests/cppbasic/compute.cpp
@@ -39,7 +39,7 @@ int main(int argc, char** argv)
for (uint32_t ct=0; ct < t->getCount(); ct++) {
buf[ct] = ct | (ct << 16);
}
- ain->copy1DRangeFrom(0, t->getCount(), buf, t->getCount()*4);
+ ain->copy1DRangeFrom(0, t->getCount(), buf);
sc->forEach_root(ain, aout);
printf("for each done\n");