Skip to content

Commit

Permalink
[change] ref validity check
Browse files Browse the repository at this point in the history
  • Loading branch information
begla committed Aug 7, 2024
1 parent 5b8bb70 commit 30136d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iolite_c_api/iolite_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,8 @@ inline io_ref_t io_ref_invalid()
inline io_bool_t io_ref_is_valid(io_ref_t ref)
{
return ref.id != io_ref_internal_invalid_id &&
ref.gen != io_ref_internal_invalid_gen_id;
ref.gen != io_ref_internal_invalid_gen_id &&
ref.type != io_ref_internal_invalid_type_id;
}

// Returns true if both refs are equal.
Expand Down

0 comments on commit 30136d5

Please sign in to comment.