From 30136d59fc3cb9eda3dded58b326774780c7c51c Mon Sep 17 00:00:00 2001 From: Benjamin Wrensch Date: Wed, 7 Aug 2024 16:30:59 +0200 Subject: [PATCH] [change] ref validity check --- iolite_c_api/iolite_api.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iolite_c_api/iolite_api.h b/iolite_c_api/iolite_api.h index 965fecc..8d1f22d 100644 --- a/iolite_c_api/iolite_api.h +++ b/iolite_c_api/iolite_api.h @@ -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.