Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Jan 10, 2024
1 parent 9a1cd7c commit d80671c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pantab/src/pantab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ template <typename OffsetT> class Utf8InsertHelper : public InsertHelper {

void insertValueAtIndex(size_t idx) override {
if (!validity_buffer_[idx]) {
inserter_->add(std::optional<std::string_view>{std::nullopt});
hyperapi::internal::ValueInserter{*inserter_}.addNull();
return;
}

Expand All @@ -128,7 +128,7 @@ template <typename OffsetT> class Utf8InsertHelper : public InsertHelper {
const auto usize_bytes = static_cast<const size_t>(size_bytes);
hyperapi::string_view result{
reinterpret_cast<const char *>(buffer_) + current_offset, usize_bytes};
hyperapi::internal::ValueInserter{*inserter_}.addNull();
inserter_->add(result);
}
};

Expand Down

0 comments on commit d80671c

Please sign in to comment.