From 445222e48c380bbb5d209a82f9614187bc751b41 Mon Sep 17 00:00:00 2001 From: Michael McConville Date: Wed, 16 Sep 2015 23:42:36 -0400 Subject: Clean up some needless malloc casts, convert some mallocs to callocs, and fix some style --- Vector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Vector.c') diff --git a/Vector.c b/Vector.c index c1e2768a..8200564c 100644 --- a/Vector.c +++ b/Vector.c @@ -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; -- cgit v1.2.3