Skip to content

Commit

Permalink
tiledbsparse.cpp: fix compiler warning with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jul 19, 2023
1 parent ff5a515 commit 517beea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frmts/tiledb/tiledbsparse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4665,7 +4665,7 @@ void OGRTileDBLayer::SetNullBuffer(
{
psPrivateData->nullHolder =
std::make_shared<std::vector<uint8_t>>(
(nSrcSize + 7) / 8, 0xFF);
(nSrcSize + 7) / 8, static_cast<uint8_t>(0xFF));
pabyNull = psPrivateData->nullHolder->data();
psChild->buffers[0] = pabyNull;
}
Expand All @@ -4688,7 +4688,8 @@ void OGRTileDBLayer::SetNullBuffer(
static_cast<size_t>(psChild->length);
psPrivateData->nullHolder =
std::make_shared<std::vector<uint8_t>>(
(nDstSize + 7) / 8, 0xFF);
(nDstSize + 7) / 8,
static_cast<uint8_t>(0xFF));
pabyNull = psPrivateData->nullHolder->data();
psChild->buffers[0] = pabyNull;
}
Expand Down

0 comments on commit 517beea

Please sign in to comment.