Skip to content

Commit

Permalink
fix NumericArrayResize to allocate correctly for UInt64Arrays in Copy…
Browse files Browse the repository at this point in the history
…UInt64ToCluster (#255)
  • Loading branch information
ni-sujain authored May 8, 2023
1 parent 058070d commit 01f82fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cluster_copier.cc
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ namespace grpc_labview {
auto repeatedUInt64 = std::static_pointer_cast<LVRepeatedUInt64MessageValue>(value);
if (repeatedUInt64->_value.size() != 0)
{
NumericArrayResize(0x03, 1, start, repeatedUInt64->_value.size());
NumericArrayResize(0x08, 1, start, repeatedUInt64->_value.size());
auto array = *(LV1DArrayHandle*)start;
(*array)->cnt = repeatedUInt64->_value.size();
auto byteCount = repeatedUInt64->_value.size() * sizeof(uint64_t);
Expand Down

0 comments on commit 01f82fd

Please sign in to comment.