Commit e978eec6 authored by Matthieu Schaller's avatar Matthieu Schaller

C++ compilation fixes

parent d81e4b10
......@@ -75,8 +75,8 @@ int main(int argc, char *argv[]) {
threadpool_init(&tp, num_threads);
/* Create some random data */
float *array_f = malloc(array_size * sizeof(float));
long long *array_ll = malloc(array_size * sizeof(long long));
float *array_f = (float *)malloc(array_size * sizeof(float));
long long *array_ll = (long long *)malloc(array_size * sizeof(long long));
for (int i = 0; i < array_size; ++i) {
array_f[i] = rand() / ((float)RAND_MAX);
......
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