Skip to content

Commit 8205400

Browse files
committed
fix curl range
It looks like clang-tidy messed up the parentheses here. Signed-off-by: Rosen Penev <[email protected]>
1 parent 48933b9 commit 8205400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basicio.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,7 @@ void CurlIo::CurlImpl::getDataByRange(size_t lowBlock, size_t highBlock, std::st
15781578
// curl_easy_setopt(curl_.get(), CURLOPT_VERBOSE, 1); // debugging mode
15791579

15801580
if (lowBlock != std::numeric_limits<size_t>::max() && highBlock != std::numeric_limits<size_t>::max()) {
1581-
auto range = stringFormat("{}-{}", lowBlock * blockSize_, (highBlock + 1) * (blockSize_ - 1));
1581+
auto range = stringFormat("{}-{}", lowBlock * blockSize_, ((highBlock + 1) * blockSize_) - 1);
15821582
curl_easy_setopt(curl_.get(), CURLOPT_RANGE, range.c_str());
15831583
}
15841584

0 commit comments

Comments
 (0)