From 47cc4cab7125123dff2aea9517579fb5c2845a41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Thu, 30 Aug 2018 14:11:08 +0200 Subject: [PATCH] go: Fix Host functions type checks --- bindings/go/evmc/host.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bindings/go/evmc/host.c b/bindings/go/evmc/host.c index 0f91f6d..88cb7b8 100644 --- a/bindings/go/evmc/host.c +++ b/bindings/go/evmc/host.c @@ -46,9 +46,10 @@ static inline void go_exported_functions_type_checks() size_t size = 0; int64_t number = 0; struct evmc_message* message = NULL; - struct evmc_result* result = NULL; struct evmc_tx_context* tx_context = NULL; - + + struct evmc_result result; + (void)result; enum evmc_storage_status storage_status; (void)storage_status; int status; @@ -87,8 +88,8 @@ static inline void go_exported_functions_type_checks() selfdestruct(context, address, address); evmc_call_fn call_fn = NULL; - call_fn(result, context, message); - call(result, context, message); + result = call_fn(context, message); + result = call(context, message); evmc_get_tx_context_fn get_tx_context_fn = NULL; get_tx_context_fn(tx_context, context);