We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24265a2 commit 4406de3Copy full SHA for 4406de3
ModelicaByExample/Functions/Interpolation/source/VectorTable.c
@@ -17,12 +17,12 @@ typedef struct {
17
18
void *
19
createVectorTable(double *data, size_t np) {
20
- VectorTable *table = malloc(sizeof(VectorTable));
+ VectorTable *table = (VectorTable*) malloc(sizeof(VectorTable));
21
if (table) {
22
/* Allocate memory for data */
23
- table->x = malloc(sizeof(double)*np);
+ table->x = (double*) malloc(sizeof(double)*np);
24
if (table->x) {
25
- table->y = malloc(sizeof(double)*np);
+ table->y = (double*) malloc(sizeof(double)*np);
26
if (table->y) {
27
/* Copy data into our local array */
28
size_t i;
0 commit comments