commit be3a7a49dedfc98ef4fb3d42837a715e2ab72257
parent 982daa5faa21aaf62f19f98731e8078c520a28d2
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Tue, 12 Jan 2021 15:57:07 +0100
Fix a msvc warning
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/test_s3d_accel_struct_conf.c b/src/test_s3d_accel_struct_conf.c
@@ -67,8 +67,10 @@ mesh_init_sphere
sphere->ntris = 2*nthetas * (nphis-2)/*#contour tris*/ + 2*nthetas/*#polar tris*/;
sphere->allocator = allocator;
- CHK(sphere->pos = MEM_CALLOC(allocator, sphere->nverts, sizeof(double[3])));
- CHK(sphere->ids = MEM_CALLOC(allocator, sphere->ntris, sizeof(size_t[3])));
+ sphere->pos = MEM_CALLOC(allocator, sphere->nverts, sizeof(double[3]));
+ CHK(sphere->pos);
+ sphere->ids = MEM_CALLOC(allocator, sphere->ntris, sizeof(size_t[3]));
+ CHK(sphere->ids);
/* Build the contour vertices */
i = 0;