Skip to content

Commit b188fa6

Browse files
committed
feat(silo): fix casting error
1 parent 2fdde60 commit b188fa6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/silo/query_engine/actions/action.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,8 @@ arrow::Result<arrow::acero::ExecNode*> Action::addZstdDecompressNode(
514514
SILO_ASSERT_GT(sum_of_reference_genome_sizes, 0u);
515515

516516
// We aim for 64 MB batch size to give the plan time to apply backpressure
517-
size_t maximum_batch_size = std::max(common::S_64_MB / sum_of_reference_genome_sizes, 1UL);
517+
auto maximum_batch_size =
518+
static_cast<int64_t>(std::max(common::S_64_MB / sum_of_reference_genome_sizes, 1UL));
518519

519520
// Delay delivery of large number of batches to about 100 MB per second
520521
// A batch targets 64 MB, therefore we allow 1.5 batches per second.

0 commit comments

Comments
 (0)