Skip to content

Commit

Permalink
Add explcit casts to Buffer registration
Browse files Browse the repository at this point in the history
Attempt at fixing #120
  • Loading branch information
carlopi committed Oct 1, 2024
1 parent 874c0dd commit 3f29201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ Napi::Value Connection::RegisterBuffer(const Napi::CallbackInfo &info) {
auto raw_ptr = reinterpret_cast<uint64_t>(arr.ArrayBuffer().Data());
auto length = (uint64_t)arr.ElementLength();

arrow_scan_function += "{'ptr': " + std::to_string(raw_ptr) + ", 'size': " + std::to_string(length) + "},";
arrow_scan_function += "{'ptr': " + std::to_string(raw_ptr) + "::UBIGINT, 'size': " + std::to_string(length) + "::UBIGINT},";
}
arrow_scan_function += "])";

Expand Down

0 comments on commit 3f29201

Please sign in to comment.