Skip to content

Commit 089bc28

Browse files
committed
tests: c api: check calloc
1 parent a03f47d commit 089bc28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void test2() {
9090
real_t *bias = (real_t*)calloc(product(c3_bias_sizes, 1), sizeof(real_t));
9191
real_t *dst = (real_t*)calloc(product(c3_dst_sizes, 4), sizeof(real_t));
9292
real_t *out_mem = (real_t*)calloc(product(c3_dst_sizes, 4), sizeof(real_t));
93-
CHECK_TRUE(src && weights && bias && dst);
93+
CHECK_TRUE(src && weights && bias && dst && out_mem);
9494

9595
for (int i = 0; i < c3_bias_sizes[0]; ++i) bias[i] = i;
9696

0 commit comments

Comments
 (0)