From 03dfc17226d45b0dbe0a37a080af4a4ae1868a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Mon, 4 Nov 2019 22:58:13 +0100 Subject: [PATCH] helpers: Return bool from is_abi_compatible() --- CHANGELOG.md | 3 +++ include/evmc/helpers.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61fcda493..35edeebeb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,9 @@ and this project adheres to [Semantic Versioning]. - The EVMC loader no longer ties to guess the VM create function name by dropping prefix words from the name. [[#440](https://github.com/ethereum/evmc/pull/440)] +- The helper function `evmc_is_abi_compatible()` returns now `bool` + instead of `int`. + [[#442](https://github.com/ethereum/evmc/pull/442)] ## [6.3.1] - 2019-08-19 diff --git a/include/evmc/helpers.h b/include/evmc/helpers.h index ac71b7a8b..5c05be53e 100644 --- a/include/evmc/helpers.h +++ b/include/evmc/helpers.h @@ -24,7 +24,7 @@ /** * Returns true if the VM has a compatible ABI version. */ -static inline int evmc_is_abi_compatible(struct evmc_vm* vm) +static inline bool evmc_is_abi_compatible(struct evmc_vm* vm) { return vm->abi_version == EVMC_ABI_VERSION; }