Merge pull request #442 from ethereum/helpers_tweak

helpers: Return bool from is_abi_compatible()
This commit is contained in:
Paweł Bylica 2019-11-05 09:44:50 +01:00 committed by GitHub
commit bd65396c7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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;
}