Skip to content

Commit 2f01641

Browse files
fix build
1 parent ad43435 commit 2f01641

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

libraries/vm_wasm/include/eosio/chain/wasm_interface_private.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <eosio/chain/transaction_context.hpp>
1616
#include <eosio/chain/wast_to_wasm.hpp>
1717
#include <boost/thread/thread.hpp>
18+
#include <boost/bind.hpp>
1819

1920
#include <fc/scoped_exit.hpp>
2021
#include <fc/io/fstream.hpp>
@@ -79,11 +80,11 @@ namespace eosio { namespace chain {
7980

8081
std::unique_ptr<wasm_instantiated_module_interface>& get_instantiated_module( const uint64_t& receiver, bool preload = false )
8182
{
82-
{
83-
size_t size = 0;
84-
const char* code;
85-
char code_id[8*4];
83+
size_t size = 0;
84+
const char* code;
85+
char code_id[8*4];
8686

87+
{
8788
std::lock_guard<std::mutex> lock(m);
8889

8990
code = get_code( receiver, &size );

libraries/vm_wasm/wasm_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace eosio { namespace chain {
4141

4242
int wasm_interface::apply( uint64_t receiver, uint64_t account, uint64_t act ) {
4343
try {
44-
auto module = my->get_instantiated_module(receiver);
44+
auto& module = my->get_instantiated_module(receiver);
4545
if (!module) {
4646
return 0;
4747
}

0 commit comments

Comments
 (0)