summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-09-10 21:34:52 +0200
committerTyge Løvset <[email protected]>2022-09-10 21:34:52 +0200
commitd6a4bdb81312d5e3b1894d261932002b57f4c830 (patch)
tree3d512063d89d933397abf337d24bd7198ce8ded9 /examples
parentab073505ad044e95cf83cc89effe992707a02c4d (diff)
downloadSTC-modified-d6a4bdb81312d5e3b1894d261932002b57f4c830.tar.gz
STC-modified-d6a4bdb81312d5e3b1894d261932002b57f4c830.zip
Internal renamings to discourage use of private struct fields.
Diffstat (limited to 'examples')
-rw-r--r--examples/complex.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/complex.c b/examples/complex.c
index c15d3bc7..59683fac 100644
--- a/examples/complex.c
+++ b/examples/complex.c
@@ -36,9 +36,7 @@ int main() {
c_auto (MapMap, mmap)
{
- FloatStack stack = FloatStack_with_capacity(xdim * ydim);
- memset(stack.data, 0, xdim*ydim*sizeof *stack.data);
- stack.size = stack.capacity;
+ FloatStack stack = FloatStack_with_size(xdim * ydim, 0);
// Put in some data in stack array
stack.data[x] = 3.1415927f;