Commit 38e4447c authored by THIBAULT Samuel's avatar THIBAULT Samuel
Browse files

Fix allocation size

parent 8b8f6363
......@@ -70,7 +70,7 @@ int main(int argc, char **argv)
double start_time;
unsigned i;
vector = malloc(sizeof(vector) * NX);
vector = malloc(sizeof(vector[0]) * NX);
for (i = 0; i < NX; i++)
vector[i] = 1.0f;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment