Skip to content

Commit

Permalink
Update pgrx/src/list/flat_list.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jubilee <[email protected]>
  • Loading branch information
nyurik and workingjubilee committed Feb 7, 2024
1 parent e26b8eb commit 4c31d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgrx/src/list/flat_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl<'cx, T: Enlist> List<'cx, T> {
let list_size = 128;
unsafe {
let list: *mut pg_sys::List = mcx.alloc_bytes(list_size).cast();
assert!(!list.is_null());
assert!(list.is_non_null());
(*list).type_ = T::LIST_TAG;
(*list).max_length = ((list_size - mem::size_of::<pg_sys::List>())
/ mem::size_of::<pg_sys::ListCell>())
Expand Down

0 comments on commit 4c31d5a

Please sign in to comment.