diff options
| author | Tyge Løvset <[email protected]> | 2022-09-10 21:34:52 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-09-10 21:34:52 +0200 |
| commit | d6a4bdb81312d5e3b1894d261932002b57f4c830 (patch) | |
| tree | 3d512063d89d933397abf337d24bd7198ce8ded9 /examples | |
| parent | ab073505ad044e95cf83cc89effe992707a02c4d (diff) | |
| download | STC-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.c | 4 |
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; |
