Skip to content

Commit 9e3e400

Browse files
committed
Got confused, the tests didn't have to be changed.
1 parent 2db6d45 commit 9e3e400

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tests/unit/iso-fortran-binding/ISO_Fortran_binding_tests.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ int main (void)
462462
elem_len, rank, extents);
463463
tmp_ind = CFI_allocate ((CFI_cdesc_t *) &test7, lower, upper,
464464
base_type_size);
465-
if (tmp_ind != 0)
465+
if (tmp_ind != CFI_SUCCESS)
466466
{
467467
goto next_attribute4;
468468
}
@@ -474,7 +474,7 @@ int main (void)
474474
return 1;
475475
}
476476
else if (ind == CFI_ERROR_BASE_ADDR_NULL && test7.base_addr != NULL &&
477-
tmp_ind != 0)
477+
tmp_ind != CFI_SUCCESS)
478478
{
479479
printf ("CFI_is_contiguous: failed to detect base address is not "
480480
"NULL.\n");

0 commit comments

Comments
 (0)