diff --git a/examples/capi.c b/examples/capi.c index 53b3f23..f290dad 100644 --- a/examples/capi.c +++ b/examples/capi.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -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: ");