Skip to content

Commit cd82e90

Browse files
committed
Remove incorrect const qualifiers on two imports in bindings.c
`datastore_insert_bsatn` and `datastore_update_bsatn` will write back to the row buffer when passed a row with a 0 in an `auto_inc` column. The Rust imports correctly specify these row pointers as `*mut u8`, but the C# imports in `bindings.c` were declaring them as `const uint8_t*`. This commit removes the incorrect `const` qualifiers from the row pointer arguments in those declarations.
1 parent f4f698e commit cd82e90

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/bindings-csharp/Runtime/bindings.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ IMPORT(int16_t, row_iter_bsatn_advance,
6161
(RowIter iter, uint8_t* buffer_ptr, size_t* buffer_len_ptr),
6262
(iter, buffer_ptr, buffer_len_ptr));
6363
IMPORT(uint16_t, row_iter_bsatn_close, (RowIter iter), (iter));
64-
IMPORT(Status, datastore_insert_bsatn, (TableId table_id, const uint8_t* row_ptr, size_t* row_len_ptr),
64+
IMPORT(Status, datastore_insert_bsatn, (TableId table_id, uint8_t* row_ptr, size_t* row_len_ptr),
6565
(table_id, row_ptr, row_len_ptr));
66-
IMPORT(Status, datastore_update_bsatn, (TableId table_id, IndexId index_id, const uint8_t* row_ptr, size_t* row_len_ptr),
66+
IMPORT(Status, datastore_update_bsatn, (TableId table_id, IndexId index_id, uint8_t* row_ptr, size_t* row_len_ptr),
6767
(table_id, index_id, row_ptr, row_len_ptr));
6868
IMPORT(Status, datastore_delete_by_index_scan_range_bsatn,
6969
(IndexId index_id, const uint8_t* prefix, uint32_t prefix_len, ColId prefix_elems,

0 commit comments

Comments
 (0)