Skip to content

Commit

Permalink
EXODUS: Eliminate compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Sep 5, 2024
1 parent 1afd9c3 commit d464eb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/seacas/libraries/exodus/test/testwt-field-metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ int main(int argc, char **argv)
int cardinality =
field.cardinality[0] != 0 ? field.cardinality[0] : ex_field_cardinality(field.type[0]);
for (int i = 0; i < cardinality; i++) {
const char *name = ex_component_field_name(&field, (int[]){i + 1});
const char *name = ex_component_field_name(&field, (int[]){i + 1, 0});
assert(strcmp(var_names[vname++], name) == 0);
}
}
Expand All @@ -152,7 +152,7 @@ int main(int argc, char **argv)
int cardinality =
field.cardinality[0] != 0 ? field.cardinality[0] : ex_field_cardinality(field.type[0]);
for (int i = 0; i < cardinality; i++) {
const char *name = ex_component_field_name(&field, (int[]){i + 1});
const char *name = ex_component_field_name(&field, (int[]){i + 1, 0});
assert(strcmp(var_names[vname++], name) == 0);
}
}
Expand Down

0 comments on commit d464eb6

Please sign in to comment.