Skip to content

Commit 5777dfb

Browse files
committed
rob's suggestion
Signed-off-by: Daniel King <[email protected]>
1 parent 8b5a462 commit 5777dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vortex-array/src/serde.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl<'a> ArrayNodeFlatBuffer<'a> {
156156
}
157157
}
158158
let n_buffers_recursive = array.nbuffers_recursive();
159-
if u16::try_from(n_buffers_recursive).is_err() {
159+
if n_buffers_recursive > u16::MAX as usize {
160160
vortex_bail!(
161161
"Array and all descendent arrays can have at most u16::MAX buffers: {}",
162162
n_buffers_recursive

0 commit comments

Comments
 (0)