diff options
author | Michael McConville <mmcconville ~a~ mykolab ~d~ com> | 2015-09-16 23:42:36 -0400 |
---|---|---|
committer | Michael McConville <mmcconville ~a~ mykolab ~d~ com> | 2015-09-16 23:42:36 -0400 |
commit | 445222e48c380bbb5d209a82f9614187bc751b41 (patch) | |
tree | 6d236f6744ed7a61a754385519395a2932d66d3b /Vector.c | |
parent | 1d805b36b429f5157dd0de6f0b498941aa097941 (diff) |
Clean up some needless malloc casts, convert some mallocs to callocs, and fix some style
Diffstat (limited to 'Vector.c')
-rw-r--r-- | Vector.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -37,7 +37,7 @@ Vector* Vector_new(ObjectClass* type, bool owner, int size) { if (size == DEFAULT_SIZE) size = 10; - this = (Vector*) malloc(sizeof(Vector)); + this = malloc(sizeof(Vector)); this->growthRate = size; this->array = (Object**) calloc(size, sizeof(Object*)); this->arraySize = size; |