Skip to content

Commit

Permalink
Allow non-void entry point functions (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
swernli authored Apr 2, 2024
1 parent 6dc2c42 commit a27320b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ unsafe fn run_entry_point(
execution_engine: &ExecutionEngine,
entry_point: FunctionValue,
) -> Result<(), String> {
if entry_point.count_params() == 0 && entry_point.get_type().get_return_type().is_none() {
if entry_point.count_params() == 0 {
execution_engine.run_function(entry_point, &[]);
Ok(())
} else {
Expand Down

0 comments on commit a27320b

Please sign in to comment.