summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-21 09:56:57 +0200
committerTyge Løvset <[email protected]>2021-09-21 09:56:57 +0200
commitb31765540d40675665d8a58f5fa4d1e23dd5ba64 (patch)
treea164d33d40a53a36605362c05ad0f84098a6befb /include
parented62ea868e505d5773d583f4a09c32b13f00c180 (diff)
downloadSTC-modified-b31765540d40675665d8a58f5fa4d1e23dd5ba64.tar.gz
STC-modified-b31765540d40675665d8a58f5fa4d1e23dd5ba64.zip
Fixed input args documentation. Fixed carr2 and carr3 clone functions.
Diffstat (limited to 'include')
-rw-r--r--include/stc/carr2.h2
-rw-r--r--include/stc/carr3.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/carr2.h b/include/stc/carr2.h
index 93cabb6e..12b61876 100644
--- a/include/stc/carr2.h
+++ b/include/stc/carr2.h
@@ -108,7 +108,7 @@ STC_DEF Self cx_memb(_with_values)(size_t xdim, size_t ydim, i_val value) {
STC_DEF Self cx_memb(_clone)(Self src) {
Self _arr = cx_memb(_init)(src.xdim, src.ydim);
for (cx_value_t* p = _arr.data[0], *q = src.data[0], *e = p + cx_memb(_size)(src); p != e; ++p, ++q)
- *p = i_valfrom(*q);
+ *p = i_valfrom(i_valto(q));
return _arr;
}
diff --git a/include/stc/carr3.h b/include/stc/carr3.h
index 8ba67d43..1e11b03e 100644
--- a/include/stc/carr3.h
+++ b/include/stc/carr3.h
@@ -112,7 +112,7 @@ STC_DEF Self cx_memb(_with_values)(size_t xdim, size_t ydim, size_t zdim, i_val
STC_DEF Self cx_memb(_clone)(Self src) {
Self _arr = cx_memb(_init)(src.xdim, src.ydim, src.zdim);
for (cx_value_t* p = **_arr.data, *q = **src.data, *e = p + cx_memb(_size)(src); p != e; ++p, ++q)
- *p = i_valfrom(*q);
+ *p = i_valfrom(i_valto(q));
return _arr;
}