aboutsummaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-01 15:24:46 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-01 15:58:49 +0100
commit0baf5945bca147d09e29920e07ba43c187484238 (patch)
tree6fc27ff8d13cd13eb136a4f83545ab6f9e67712d /array.c
parent04c96b9124a95c58f698937e9d07675364622c3f (diff)
downloadvis-0baf5945bca147d09e29920e07ba43c187484238.tar.gz
vis-0baf5945bca147d09e29920e07ba43c187484238.tar.xz
text: change usage of sizeof idiom for allocation of new objects
The new code is preferable because it works independently of the variable type. Whereas before a change in type, but not within the sizeof expression would cause a wrongly sized allocation.
Diffstat (limited to 'array.c')
0 files changed, 0 insertions, 0 deletions