Correct calling branches

This commit is contained in:
Ayaz Hafiz 2023-07-10 21:00:47 -04:00
parent 23f4d02f81
commit fde75d5432
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 19 additions and 25 deletions

View file

@ -219,7 +219,7 @@ pub fn call_erased_function<'a>(
cond_symbol: value_is_null,
cond_layout: Layout::BOOL,
// value == null
branches: arena.alloc([(0, BranchInfo::None, build_closure_data_branch(env, false))]),
branches: arena.alloc([(1, BranchInfo::None, build_closure_data_branch(env, false))]),
// value != null
default_branch: (
BranchInfo::None,