Skip to content

Commit 5f444a7

Browse files
committed
Fix API call
1 parent eb7e59b commit 5f444a7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/runtime/38_resolve_struct.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@ struct Datastruct {
1717
};
1818

1919
void type_check(const void* addr) {
20-
int id_result = 0;
21-
size_t count_check = 0;
20+
typeart_type_info info;
2221
typeart_status status;
23-
status = typeart_get_type(addr, &id_result, &count_check);
22+
status = typeart_get_type(addr, &info);
2423

2524
if (status != TYPEART_OK) {
2625
fprintf(stderr, "[Error]: Status not OK: %i for %p\n", status, addr);
2726
} else {
28-
fprintf(stderr, "Status OK: %i %zu\n", id_result, count_check);
27+
fprintf(stderr, "Status OK: %i %zu\n", info.type_id, info.count);
2928
}
3029
}
3130

0 commit comments

Comments
 (0)