Skip to content

Commit

Permalink
Removed an unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
mtiller committed Apr 11, 2014
1 parent fdd6cc6 commit 4ed7c4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ typedef struct {

void *
createVectorTable(double *data, size_t np) {
VectorTable *table = (VectorTable *)malloc(sizeof(VectorTable));
VectorTable *table = malloc(sizeof(VectorTable));
if (table) {
/* Allocate memory for data */
table->x = malloc(sizeof(double)*np);
Expand Down

0 comments on commit 4ed7c4b

Please sign in to comment.