Skip to content

Commit

Permalink
also with JIT
Browse files Browse the repository at this point in the history
  • Loading branch information
borisbat committed Dec 10, 2024
1 parent 2e9aee8 commit 6fa7d07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/builtin/module_jit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ extern "C" {

template <typename KeyType>
int32_t jit_table_at ( Table * tab, KeyType key, int32_t valueTypeSize, Context * context, LineInfoArg * at ) {
if ( tab->lock ) context->throw_error_at(at, "can't insert to a locked table");
TableHash<KeyType> thh(context,valueTypeSize);
auto hfn = hash_function(*context, key);
return thh.reserve(*tab, key, hfn, at);
Expand Down

0 comments on commit 6fa7d07

Please sign in to comment.