Skip to content

Commit

Permalink
make the mac runner happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
aliddell committed Nov 14, 2023
1 parent c41dba4 commit f971b42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/zarr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,19 +381,19 @@ zarr::Zarr::get_meta(StoragePropertyMetadata* meta) const
.width = {
.writable = 1,
.low = 32.f,
.high = -1.f,
.high = (float)std::numeric_limits<uint32_t>::max(),
.type = PropertyType_FixedPrecision
},
.height = {
.writable = 1,
.low = 32.f,
.high = -1.f,
.high = (float)std::numeric_limits<uint32_t>::max(),
.type = PropertyType_FixedPrecision
},
.planes = {
.writable = 1,
.low = 32.f,
.high = -1.f,
.high = (float)std::numeric_limits<uint32_t>::max(),
.type = PropertyType_FixedPrecision
},
},
Expand Down Expand Up @@ -577,6 +577,8 @@ zarr::Zarr::set_chunking(const ChunkingProps& props, const ChunkingMeta& meta)
props.height, (uint32_t)meta.height.low, (uint32_t)meta.height.high),
};

const auto hi = (uint32_t)(-1.f);

planes_per_chunk_ = std::clamp(
props.planes, (uint32_t)meta.planes.low, (uint32_t)meta.planes.high);

Expand Down
4 changes: 2 additions & 2 deletions src/zarr.v3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ zarr::ZarrV3::get_meta(StoragePropertyMetadata* meta) const
.is_supported = 1,
.width = { .writable = 1,
.low = 1.f,
.high = -1.f,
.high = (float)std::numeric_limits<uint32_t>::max(),
.type = PropertyType_FixedPrecision },
.height = { .writable = 1,
.low = 1.f,
.high = -1.f,
.high = (float)std::numeric_limits<uint32_t>::max(),
.type = PropertyType_FixedPrecision },
.planes = { .writable = 1,
.low = 1.f,
Expand Down

0 comments on commit f971b42

Please sign in to comment.