From 7223b995a3a362098ec58be4338bcd8819231a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Tue, 18 Jun 2024 23:19:53 +0500 Subject: [PATCH] Fix function signature in test/native_test.rs --- test/native_test.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/native_test.rs b/test/native_test.rs index b6f7fc5..ac41f88 100644 --- a/test/native_test.rs +++ b/test/native_test.rs @@ -4,10 +4,9 @@ // rustc --crate-type cdylib native_test.rs -o native_test.dll #[no_mangle] -unsafe extern "C" fn labashka(pop: extern fn() -> u16, push: extern fn(u16) -> i32, len: extern fn () -> usize, max: usize) -> u32 { +unsafe extern "C" fn labashka(pop: extern fn() -> u16, push: extern fn(u16) -> i32, len: extern fn () -> usize, max: usize) { println!("At {}, there's {}.", len(), pop()); push(12); println!("Maximum size is {}.", max); - return 0; }