From e2be70b035459cb534360b72ece4ff2abaa09cd7 Mon Sep 17 00:00:00 2001 From: Aapo Alasuutari Date: Thu, 20 Oct 2022 07:07:37 +0300 Subject: feat(ext/ffi): Make op_ffi_ptr_of fast (#16297) Makes `op_ffi_ptr_of` fast. One of the tests changed from printing `false` to `true` as the fast `&[u8]` slice path creates the slice with a null pointer. Thus the `op_ffi_ptr_of` will now return a null pointer value whereas previously it returned a dangling pointer value. --- test_ffi/tests/integration_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test_ffi/tests/integration_tests.rs') diff --git a/test_ffi/tests/integration_tests.rs b/test_ffi/tests/integration_tests.rs index 6b4853453..38808d205 100644 --- a/test_ffi/tests/integration_tests.rs +++ b/test_ffi/tests/integration_tests.rs @@ -57,7 +57,7 @@ fn basic() { false\n\ true\n\ false\n\ - false\n\ + true\n\ false\n\ 579\n\ true\n\ -- cgit v1.2.3