Skip to content

Commit

Permalink
[fix] typo in io_variant_get_bool
Browse files Browse the repository at this point in the history
  • Loading branch information
begla authored Jul 28, 2024
1 parent 3a775c1 commit da0bf0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iolite_c_api/iolite_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ inline io_variant_t io_variant_from_bool(io_bool_t value)
//----------------------------------------------------------------------------//
inline io_bool_t io_variant_get_bool(io_variant_t variant)
{
if (variant.type.hash != io_variant_type_uint64)
if (variant.type.hash != io_variant_type_bool)
return IO_FALSE;
return *(io_bool_t*)variant.data;
}
Expand Down

0 comments on commit da0bf0f

Please sign in to comment.