Prepare for LLVM 5.0 upgrade, but still compatible with LLVM 3.9

This commit is contained in:
Dmitri Makarov 2017-12-11 20:12:39 +01:00
parent 1b80df1e8a
commit a154b61c51
1 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
#include <inttypes.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -151,8 +152,8 @@ int main(int argc, char *argv[]) {
if (result.status_code != EVM_SUCCESS) { if (result.status_code != EVM_SUCCESS) {
printf(" EVM execution failure: %d\n", result.status_code); printf(" EVM execution failure: %d\n", result.status_code);
} else { } else {
printf(" Gas used: %ld\n", gas - result.gas_left); printf(" Gas used: %" PRId64 "\n", gas - result.gas_left);
printf(" Gas left: %ld\n", result.gas_left); printf(" Gas left: %" PRId64 "\n", result.gas_left);
printf(" Output size: %zd\n", result.output_size); printf(" Output size: %zd\n", result.output_size);
printf(" Output: "); printf(" Output: ");