Skip to content

Commit

Permalink
Fix offsets bug
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 20, 2025
1 parent 8cc49e2 commit 005ecc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/utils/re_arrow_util/src/arrow_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn offsets_lengths(
start <= end && 0 <= start,
"Bad arrow offset buffer: {start}, {end}"
);
end.saturating_sub(end).max(0) as usize
end.saturating_sub(start).max(0) as usize
})
}

Expand Down

0 comments on commit 005ecc0

Please sign in to comment.