mirror of https://github.com/status-im/evmc.git
Prepare for LLVM 5.0 upgrade, but still compatible with LLVM 3.9
This commit is contained in:
parent
1b80df1e8a
commit
a154b61c51
|
@ -1,3 +1,4 @@
|
|||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -151,8 +152,8 @@ int main(int argc, char *argv[]) {
|
|||
if (result.status_code != EVM_SUCCESS) {
|
||||
printf(" EVM execution failure: %d\n", result.status_code);
|
||||
} else {
|
||||
printf(" Gas used: %ld\n", gas - result.gas_left);
|
||||
printf(" Gas left: %ld\n", result.gas_left);
|
||||
printf(" Gas used: %" PRId64 "\n", gas - result.gas_left);
|
||||
printf(" Gas left: %" PRId64 "\n", result.gas_left);
|
||||
printf(" Output size: %zd\n", result.output_size);
|
||||
|
||||
printf(" Output: ");
|
||||
|
|
Loading…
Reference in New Issue