Skip to content

Commit

Permalink
make UNLIMITED an Int
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Sep 5, 2023
1 parent f8a5488 commit 13747c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dataspaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Can be used as the `max_dims` argument in the [`Dataspace`](@ref) constructor,
or as the `count` argument in [`BlockRange`](@ref) when selecting virtual
dataset mappings.
"""
const UNLIMITED = reinterpret(Int64, API.H5S_UNLIMITED)
const UNLIMITED = -1

Base.:(==)(dspace1::Dataspace, dspace2::Dataspace) =
API.h5s_extent_equal(checkvalid(dspace1), checkvalid(dspace2))
Expand Down

0 comments on commit 13747c0

Please sign in to comment.