Skip to content

Commit

Permalink
Merge pull request #912 from wasmerio/nlewycky-patch-1
Browse files Browse the repository at this point in the history
Use printf portably.
  • Loading branch information
MarkMcCaskey authored Oct 29, 2019
2 parents 6d6b877 + ae07620 commit d87e81c
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 d87e81c

Please sign in to comment.