You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git checkout master
cd lib/runtime-c-api
cargo test
Expected behavior
Actual behavior
CMakeFiles/test-exports.dir/build.make:62: recipe for target 'CMakeFiles/test-exports.dir/test-exports.c.o' failed
CMakeFiles/Makefile2:289: recipe for target 'CMakeFiles/test-exports.dir/all' failed
Makefile:94: recipe for target 'all' failed
stderr:
/home/ethan/IdeaProjects/wasmer/lib/runtime-c-api/tests/test-exports.c: In function ‘main’:
/home/ethan/IdeaProjects/wasmer/lib/runtime-c-api/tests/test-exports.c:245:28: error: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int64_t {aka long int}’ [-Werror=format=]
printf("Result: %lld\n", outputs[0].value.I64);
~~~^ ~~~~~~~~~~~~~~~~~~~~
%ld
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/test-exports.dir/test-exports.c.o] Error 1
make[1]: *** [CMakeFiles/test-exports.dir/all] Error 2
make: *** [all] Error 2
Additional context
The text was updated successfully, but these errors were encountered:
813: Fix test printf typo r=Hywan a=ethanfrey
<!--
Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test:
https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests
-->
# Description
<!--
Provide details regarding the change including motivation,
links to related issues, and the context of the PR.
-->
Fixes#812
`%lld -> %ld fixes cargo test compile error`
# Review
- [ ] Create a short description of the the change in the CHANGELOG.md file
Co-authored-by: Ethan Frey <[email protected]>
Describe the bug
Discovered when I updated versions while reporting #811
This is a minor typo that at least makes my ubuntu/linux c compiler complain.
git log -1
provides:Steps to reproduce
Expected behavior
Actual behavior
Additional context
The text was updated successfully, but these errors were encountered: