Skip to content

Commit

Permalink
[ntuple] make RNTupleWriteOptions::fCompression unsigned
Browse files Browse the repository at this point in the history
  • Loading branch information
jblomer committed Jan 9, 2025
1 parent 3c85f3f commit 9f88206
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tree/ntuple/v7/inc/ROOT/RNTupleWriteOptions.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public:
// clang-format on

protected:
int fCompression{RCompressionSetting::EDefaults::kUseGeneralPurpose};
std::uint32_t fCompression{RCompressionSetting::EDefaults::kUseGeneralPurpose};
/// Approximation of the target compressed cluster size
std::size_t fApproxZippedClusterSize = 128 * 1024 * 1024;
/// Memory limit for committing a cluster: with very high compression ratio, we need a limit
Expand Down Expand Up @@ -103,8 +103,8 @@ public:
virtual ~RNTupleWriteOptions() = default;
virtual std::unique_ptr<RNTupleWriteOptions> Clone() const;

int GetCompression() const { return fCompression; }
void SetCompression(int val) { fCompression = val; }
std::uint32_t GetCompression() const { return fCompression; }
void SetCompression(std::uint32_t val) { fCompression = val; }
void SetCompression(RCompressionSetting::EAlgorithm::EValues algorithm, int compressionLevel)
{
fCompression = CompressionSettings(algorithm, compressionLevel);
Expand Down

0 comments on commit 9f88206

Please sign in to comment.