Skip to content

Commit

Permalink
[DF] Fix contiguousness check, take #2
Browse files Browse the repository at this point in the history
  • Loading branch information
eguiraud committed Jun 7, 2020
1 parent 78cc87c commit f045581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tree/dataframe/inc/ROOT/RDF/RColumnValue.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public:
// We can decide since the array is long enough
fStorageType = EStorageType::kContiguous;
for (auto i = 0u; i < arrSize - 1; ++i) {
if ((char *)&readerArray[i + 1] - (char *)&readerArray[i] != sizeof(T)) {
if ((char *)&readerArray[i + 1] - (char *)&readerArray[i] != sizeof(typename U::value_type)) {
fStorageType = EStorageType::kSparse;
break;
}
Expand Down

0 comments on commit f045581

Please sign in to comment.