Skip to content

Commit

Permalink
Use printf portably.
Browse files Browse the repository at this point in the history
PRId64 is defined to the right printf format string to print a int64_t on the current system.
  • Loading branch information
nlewycky authored Oct 29, 2019
1 parent bc9b92c commit ae07620
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/runtime-c-api/tests/test-exports.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <inttypes.h>
#include <stdio.h>
#include "../wasmer.h"
#include <assert.h>
Expand Down Expand Up @@ -242,7 +243,7 @@ int main()

wasmer_result_t call_result = wasmer_export_func_call(exported_function, inputs, inputs_arity, outputs, outputs_arity);

printf("Result: %lld\n", outputs[0].value.I64);
printf("Result: %" PRId64 "\n", outputs[0].value.I64);

assert(outputs[0].value.I64 == 7);
assert(call_result == WASMER_OK);
Expand Down

0 comments on commit ae07620

Please sign in to comment.