From 651520b6e988bfad3f72a8a34997948d0b84f6a1 Mon Sep 17 00:00:00 2001 From: Benjamin Klum Date: Sat, 2 Nov 2024 17:16:02 +0100 Subject: [PATCH] #1298 Fix broken stop(x) function in control transformations --- main/src/base/eel.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main/src/base/eel.rs b/main/src/base/eel.rs index a1affc019..0e5e6016e 100644 --- a/main/src/base/eel.rs +++ b/main/src/base/eel.rs @@ -56,7 +56,8 @@ impl Vm { root::NSEEL_addfunc_ret_type( name.as_c_str().as_ptr(), 1, - -1, + // Return double + 1, Some(root::NSEEL_PProc_THIS), f as *mut c_void, &mut *self.function_table as *mut _, @@ -73,7 +74,8 @@ impl Vm { root::NSEEL_addfunc_ret_type( name.as_c_str().as_ptr(), 1, - 1, + // Return void or bool + -1, Some(root::NSEEL_PProc_THIS), f as *mut c_void, &mut *self.function_table as *mut _,